@Override
  public void setConfigurations(Map<String, Config> configurations) throws AmbariException {
    ConfigGroupEntity configGroupEntity = getConfigGroupEntity();
    ClusterEntity clusterEntity = configGroupEntity.getClusterEntity();

    // only update the internal state after the configurations have been
    // persisted
    persistConfigMapping(clusterEntity, configGroupEntity, configurations);
    m_configurations = new ConcurrentHashMap<>(configurations);
  }
Helper method to recreate configs mapping
ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java