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