private void setDataNodeConfigInHelix(String dcName, String instanceName, DataNodeConfig config,
      PropertyStoreToDataNodeConfigAdapter adapter, InstanceConfigToDataNodeConfigAdapter.Converter converter) {
    if (dataNodeConfigSourceType == PROPERTY_STORE) {
      if (!adapter.set(config)) {
        logger.error("[{}] Failed to persist config for node {} in the property store.", dcName.toUpperCase(),
            config.getInstanceName());
      }
    } else {
      adminForDc.get(dcName).setInstanceConfig(clusterName, instanceName, converter.convert(config));
    }
  }
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