@Transactional
  public GroupEntity merge(GroupEntity group) {
    group.setGroupName(group.getGroupName().toLowerCase());
    return entityManagerProvider.get().merge(group);
  }
Find the group entity for the given admin principal entity.

@param principal the principal entity

@return the matching gropu entity
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/GroupDAO.java