code: private static CmsRelationType valueOfInternal(String name) {
  
          if (name != null) {
              String valueUp = name.toUpperCase();
              for (int i = 0; i < VALUE_ARRAY.length; i++) {
                  if (valueUp.equals(VALUE_ARRAY[i].m_name)) {
                      return VALUE_ARRAY[i];
                  }
              }
              // deprecated types
              if (valueUp.equals("REFERENCE") || valueUp.equals("XML_REFERENCE")) {
                  return XML_WEAK;
              } else if (valueUp.equals("ATTACHMENT") || valueUp.equals("XML_ATTACHMENT")) {
                  return XML_STRONG;
              }
              // user defined
              for (int i = 0; i < getAllUserDefined().size(); i++) {
                  CmsRelationType type = getAllUserDefined().get(i);
                  if (valueUp.equals(type.m_name)) {
                      return type;
                  }
              }
          }
          return null;
      }
docs: Internal parse method.<p>
  
  @param name the type to parse
  
  @return the enumeration element, or <code>null</code> if no matching element is found