public void putConfiguration(KerberosConfigurationDescriptor configuration) {
    if (configuration != null) {
      String type = configuration.getType();

      if (type == null) {
        throw new IllegalArgumentException("The configuration type must not be null");
      }

      if (configurations == null) {
        configurations = new TreeMap<>();
      }

      configurations.put(type, configuration);

      // Set the configuration's parent to this AbstractKerberosDescriptorContainer
      configuration.setParent(this);
    }
  }
Adds the specified KerberosConfigurationDescriptor to the list of KerberosConfigurationDescriptors.
<p/>
If an entry exists of the same configuration type, it will be overwritten.

@param configuration the KerberosConfigurationDescriptor to add
ambari-server/src/main/java/org/apache/ambari/server/state/kerberos/AbstractKerberosDescriptorContainer.java