with reference to the sample workflow
for getting vApptemplate from catalog item.
it works fine in vco 4.2 but following line returns null as i migrated code to vco 5.1
could any body help me
vAppTemplateOut = host.getEntityByReference(VclEntityType.VAPP_TEMPLATE, entity);