public void applyCustomConfig(Map<String, Map<String, String>> configurations,
                                String type, String name, String value, Boolean deleted) {
    if (!configurations.containsKey(type)) {
      configurations.put(type, new HashMap<>());
    }
    String nameToUse = deleted ? DELETED + name : name;
    Map<String, String> properties = configurations.get(type);
    if (properties.containsKey(nameToUse)) {
      properties.remove(nameToUse);
    }
    properties.put(nameToUse, value);
  }
Merge override attributes with original ones.
If overrideConfig#getPropertiesAttributes does not contain occurrence of override for any of
properties from overrideConfig#getProperties then persisted attribute should be removed.
ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java