code: public static CmsRole valueOfGroupName(String groupName) {
  
          String groupOu = CmsOrganizationalUnit.getParentFqn(groupName);
          Iterator<CmsRole> it = SYSTEM_ROLES.iterator();
          while (it.hasNext()) {
              CmsRole role = it.next();
              // direct check
              if (groupName.equals(role.getGroupName())) {
                  return role.forOrgUnit(groupOu);
              }
              if (!role.isOrganizationalUnitIndependent()) {
                  // the role group name does not start with "/", but the given group fqn does
                  if (groupName.endsWith(CmsOrganizationalUnit.SEPARATOR + role.getGroupName())) {
                      return role.forOrgUnit(groupOu);
                  }
              }
          }
          return null;
      }
docs: Returns the role for the given group name.<p>
  
  @param groupName a group name to check for role representation
  
  @return the role for the given group name