class AutonomiccsSystemVmDeploymentService implements InitializingBean {

    public HostVO searchForRandomHostInPodToDeployAutonomiccsSystemVm(HostPodVO pod) {
        List<ClusterVO> allClustersFromPod = clusterService.listAllClustersFromPod(pod.getId());
        Collections.shuffle(allClustersFromPod);
        for (ClusterVO c : allClustersFromPod) {
            HostVO host = searchForRandomHostInClusterToDeployAutonomiccsSystemVm(c);
            if (host != null) {
                return host;
            }
        }
        logger.info(String.format("Could not find any suitable hosts to deploy the system VM into pod [podId=%d, podName=%s]", pod.getId(), pod.getName()));
        return null;
    }

}