public void putComponent(KerberosComponentDescriptor component) {
    if (component != null) {
      String name = component.getName();

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

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

      components.put(name, component);
      component.setParent(this);
    }
  }
Adds or replaces a KerberosComponentDescriptor
<p/>
If a KerberosComponentDescriptor with the same name already exists in the components Map, it
will be replaced; else a new entry will be made.

@param component the KerberosComponentDescriptor to put
ambari-server/src/main/java/org/apache/ambari/server/state/kerberos/KerberosServiceDescriptor.java