class ClusterManagementDummyAlgorithm implements ClusterAdministrationHeuristicAlgorithm {

    protected List<HostResources> cloneListOfHosts(List<HostResources> hosts) {
        List<HostResources> clonedHostList = new ArrayList<>();
        for (HostResources host : hosts) {
            try {
                HostResources clonedHost = (HostResources) host.clone();
                clonedHost.setVmsResources(cloneHostVmsList(host));
                clonedHostList.add(clonedHost);
            } catch (CloneNotSupportedException e) {
                logger.error("Problems while clonning objects", e);
            }
        }
        return clonedHostList;
    }

}