class AutonomiccsSystemVirtualMachinesTemplateRegister implements InitializingBean {

    protected String getSupportedImageFormat(HypervisorType hypervisor) {
        ImageFormat supportedImageFormat = Hypervisor.HypervisorType.getSupportedImageFormat(hypervisor);
        if (supportedImageFormat != null) {
            return supportedImageFormat.name();
        }
        throw new CloudRuntimeException(String.format("Could not find a supported image format for hypervisor [%s]", hypervisor));
    }

}