class AutonomiccsSystemVmDeploymentService implements InitializingBean {

    protected void validateParametersToDeployTheSystemVm(Long hostId, HostVO host) {
        if (host == null) {
            throw new CloudRuntimeException(String.format("Could not find a host with the provieded id [%d]", hostId));
        }
        if (!autonomiccsSystemVmTemplateService.isTemplateRegisteredAndReadyForHypervisor(host.getHypervisorType())) {
            throw new CloudRuntimeException(
                    String.format("There is no Autonomiccs system VM for hypervisor [%s], so we do not deploy a system Vm for it.", host.getHypervisorType()));
        }
    }

}