public synchronized void setConfigTypeAttributes(String type, Map<String, Map<String, String>> typeAttributes) {
    if (configTypes == null) {
      configTypes = new HashMap<>();
    }
    // todo: no exclusion mechanism for stack config types
    configTypes.put(type, typeAttributes);
  }
Add the given type and set it's attributes.

@param type            configuration type
@param typeAttributes  attributes associated with the type
ambari-server/src/main/java/org/apache/ambari/server/state/StackInfo.java