private VmTemplate lookupInstanceTypeByName(Template template) { return getEntity( VmTemplate.class, VdcQueryType.GetInstanceType, new GetVmTemplateParameters(template.getName()), "GetVmTemplate"); }