@Override
  public int hashCode() {
    return userName.hashCode();
  }
Creates a UserName from the given string
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/UserName.java