class AutonomiccsSystemVmDeploymentService implements InitializingBean {

    protected HostVO searchForAnotherRandomHostInTheClusterToStartSystemVmExcludingHosts(ClusterVO c, List<HostVO> excludeHosts) {
        List<HostVO> allHostsInCluster = hostService.listAllHostsInCluster(c);
        allHostsInCluster.removeAll(excludeHosts);
        Collections.shuffle(allHostsInCluster);
        for (HostVO h : allHostsInCluster) {
            if (canDeployAutonomiccsSystemVmOnHost(h)) {
                return h;
            }
        }
        logger.info(String.format("Could not find any suitable hosts to deploy the system VM into cluster [clusterId=%d, clusterName=%s]", c.getId(), c.getName()));
        return null;
    }

}