public Optional<String> getReferencedServiceName() {
    return parseServiceName(reference).or(parseServiceName(getName()));
  }
A name that refers to a service has a format like /[<service name>/[<component name>/]]<identity name>
@return an optional referenced service name
ambari-server/src/main/java/org/apache/ambari/server/state/kerberos/KerberosIdentityDescriptor.java