class AdministrationAgent implements InitializingBean {

    protected List<HostResources> getClusterUpHosts(ClusterVO cluster) {
        List<HostVO> hostsVo = hostService.listAllHostsInCluster(cluster);
        List<HostResources> hostsResources = new ArrayList<>();
        for (HostVO host : hostsVo) {
            hostsResources.add(hostResourcesService.createHostResources(host));
        }
        return hostsResources;
    }

}