protected static Set<Cluster.Location> getLocations(Set<Map<String, Object>> maps) {
    Set<Cluster.Location> locations = new HashSet<>();
    for (Map<String, Object> map : maps) {
      locations.add(new Cluster.Location((String) map.get("name"), (String) map.get("path")));
    }
    return locations;
  }
Construct a provider.

@param ivoryService    the ivory service
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/TargetClusterResourceProvider.java