private void putConfiguration(Map<String, Map<String, String>> map, String configuration, String value) {
    if (configuration != null) {
      String[] principalTokens = configuration.split("/");

      if (principalTokens.length == 2) {
        String type = principalTokens[0];
        String propertyName = principalTokens[1];

        Map<String, String> properties = map.get(type);
        if (properties == null) {
          properties = new HashMap<>();
          map.put(type, properties);
        }

        properties.put(propertyName, value);
      }
    }
  }
Inserts a configuration property and value into a map of configuration types to property
name/value pair maps.

@param map           the Map to insert into
@param configuration a configuration property in the form of config-type/property_name
@param value         the value of the configuration property
ambari-server/src/main/java/org/apache/ambari/server/controller/KerberosHelperImpl.java