class AdministrationAgent implements InitializingBean {

    protected ClusterVO getClusterToManageFromZone(ClusterAdministrationHeuristicAlgorithm algorithm, Long zoneId) {
        List<ClusterVO> clusters = clusterService.listAllClustersOnZone(zoneId);
        for (ClusterVO cluster : clusters) {
            if (cluster.getRemoved() != null) {
                continue;
            }
            if (autonomicClusterManagementService.isClusterBeingAdministrated(cluster.getId())) {
                continue;
            }
            if (autonomicClusterManagementService.canProcessCluster(cluster.getId(), algorithm)) {
                autonomicClusterManagementService.setClusterWorkInProgress(cluster.getId());
                return cluster;
            }
        }
        return null;
    }

}