private String buildName(AbstractKerberosDescriptor container, String identityName) {
    if (container instanceof KerberosServiceDescriptor) {
      return container.getName().toLowerCase() + "_" + identityName;
    } else if (container instanceof KerberosComponentDescriptor) {
      return container.getParent().getName().toLowerCase() + "_" + container.getName().toLowerCase() + "_" + identityName;
    } else {
      return identityName;
    }
  }
Builds the name of an identity based on the identity's container and the referenced identity's name.
<p>
The calculated name will be in the following format and converted to all lowercase characters:
<code>SERVICE_COMPONENT_IDENTITY</code>

@param container    the current {@link KerberosIdentityDescriptor}, ideally the identity's parent descriptor
@param identityName the referenced identity's name
@return a name
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java