public static KerberosPrincipalType translate(String string) {
    if(string == null)
      return null;
    else {
      string = string.trim();

      if(string.isEmpty())
        return null;
      else {
        return valueOf(string.toUpperCase());
      }
    }
  }
Service principal.
<p/>
Typically in the form <code>service/host@REALM</code>.
ambari-server/src/main/java/org/apache/ambari/server/state/kerberos/KerberosPrincipalType.java