class AutonomiccsSystemVmDeploymentService implements InitializingBean {

    protected HostVO searchForRandomHostInZoneToDeployAutonomiccsSystemVm(DataCenterVO dataCenterVO) {
        List<HostPodVO> allPodsEnabledFromZone = podService.getAllPodsEnabledFromZone(dataCenterVO.getId());
        Collections.shuffle(allPodsEnabledFromZone);
        for (HostPodVO hostPodVO : allPodsEnabledFromZone) {
            HostVO host = searchForRandomHostInPodToDeployAutonomiccsSystemVm(hostPodVO);
            if (host != null) {
                return host;
            }
        }
        logger.info(String.format("Could not find any suitable hosts to deploy the system VM into zone [zoneId=%d, zoneName=%s]", dataCenterVO.getId(), dataCenterVO.getName()));
        return null;
    }

}