code: public Group getGroupByName(String name) {
          List<Group> groups = getGroupsByName(name, true);
  
          if (!groups.isEmpty()) {
              return groups.get(0);
          }
  
          return null;
      }
docs: Retrieves a single group with an exactly matching name.
  <p>
  If there are multiple groups with the same name, the first one found will
  be returned.
  
  @param name
  the name which should be searched
  @return a group with a matching name
  @see Group