private List<String> getInstanceNamesInHelix(String dcName, PropertyStoreToDataNodeConfigAdapter adapter) {
    List<String> instanceNames;
    if (dataNodeConfigSourceType == PROPERTY_STORE) {
      instanceNames = adapter.getAllDataNodeNames();
    } else {
      instanceNames = adminForDc.get(dcName).getInstancesInCluster(clusterName);
    }
    return instanceNames;
  }
Add and/or update instances in Helix based on the information in the static cluster map.
@param dcName the name of the datacenter being processed.
@param partitionsToInstancesInDc a map to be filled with the mapping of partitions to their instance sets in the
                                 given datacenter.
@param resourcesAreFullAutoCompatible true if the resources are constructed as full auto compatible
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixBootstrapUpgradeUtil.java