private DataNodeConfig createDataNodeConfigFromStatic(String dcName, String instanceName,
      DataNodeConfig referenceConfig, Map<String, Set<String>> partitionsToInstancesInDc,
      InstanceConfigToDataNodeConfigAdapter.Converter converter) {
    InstanceConfig referenceInstanceConfig =
        overrideReplicaStatus || referenceConfig == null ? null : converter.convert(referenceConfig);
    return converter.convert(
        createInstanceConfigFromStaticInfo(dcToInstanceNameToDataNodeId.get(dcName).get(instanceName),
            partitionsToInstancesInDc, instanceToDiskReplicasMap, referenceInstanceConfig));
  }
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