class AutonomiccsSystemVmTemplateService implements InitializingBean {

    protected String constructSystemVmTemplateUrl(HypervisorType hypervisorType) {
        ImageFormat supportedImageFormat = HypervisorType.getSupportedImageFormat(hypervisorType);
        if (supportedImageFormat == null) {
            throw new CloudRuntimeException(String.format("Could not find a supported image format for hypervisor [%s]", hypervisorType));
        }
        return String.format("%s/%s.%s", autonomiccsSystemVmsTemplateUrlBase, getAutonomiccsSystemVmTemplateName(hypervisorType),
                supportedImageFormat.getFileExtension());
    }

}