code: protected static CmsRelationType getRelationType(String typeName) {
  
          for (CmsRelationType relType : CmsRelationType.getAll()) {
              if (relType.getName().equalsIgnoreCase(typeName)) {
                  return relType;
              }
          }
          return null;
      }
docs: Gets a relation type by name.<p>
  
  @param typeName the relation type name
  
  @return the relation type with the matching name