public GroupEntity getGroupEntity(String groupName, GroupType groupType) {
    return groupDAO.findGroupByNameAndType(groupName, groupType);
  }
Gets a {@link GroupEntity} by name and type.

@param groupName group name
@param groupType group type
@return group
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java