protected void updateKerberosDescriptorIdentityReferences(AbstractKerberosDescriptorContainer descriptorContainer,
                                                          String referenceName,
                                                          String newReferenceName) {
    if (descriptorContainer != null) {
      KerberosIdentityDescriptor identity = descriptorContainer.getIdentity(referenceName);
      if (identity != null) {
        identity.setName(newReferenceName);
      }
    }
  }
Given an AbstractKerberosDescriptorContainer, iterates through its contained identity descriptors
to find ones matching the reference name to change.
<p/>
If found, the reference name is updated to the new name.

@param descriptorContainer the AbstractKerberosDescriptorContainer to update
@param referenceName       the reference name to change
@param newReferenceName    the new reference name
ambari-server/src/main/java/org/apache/ambari/server/upgrade/AbstractUpgradeCatalog.java