// entity.setDomainToTemplateMap(new HashMap<String, Template>());
// }
TemplateBuilder templateBuilder = iaas.getComputeService()
.templateBuilder();
templateBuilder.imageId(iaas.getImage());
// to avoid creation of template objects in each and every time, we
// create all
// at once!
// for (org.apache.cartridge.autoscaler.service.util.ServiceContext temp