@Override
  public boolean equals(Object o) {
    if (null == o || !Role.class.equals(o.getClass())) {
      return false;
    }

    return this == o || name.equals(((Role) o).name);
  }
@return the name given to the role
ambari-server/src/main/java/org/apache/ambari/server/Role.java