private Collection<String> populateIdentityFilter(Collection<String> identityFilters, Collection<KerberosIdentityDescriptor> serviceIdentities) {
    if (serviceIdentities != null) {
      identityFilters = identityFilters == null ? new HashSet<>() : identityFilters;
      for (KerberosIdentityDescriptor serviceIdentity : serviceIdentities) {
        if (!KerberosHelper.AMBARI_SERVER_KERBEROS_IDENTITY_NAME.equals(serviceIdentity.getName())) {
          identityFilters.add(serviceIdentity.getPrincipalDescriptor().getName());
        }
      }
    }
    return identityFilters;
  }
Adjust service component filter according to installed services

@param cluster                cluster
@param includeAmbariAsService
@param serviceComponentFilter
@return
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/stageutils/KerberosKeytabController.java