code: public static int valueFromName(String name) {
          if (name.equals(TYPENAME_SIMPLE_REFERENCE)) {
              return SIMPLE_REFERENCE;
          }
          return javax.jcr.PropertyType.valueFromName(name);
      }
docs: Returns the numeric constant value of the type with the specified name.
  
  @param name the name of the property type.
  @return the numeric constant value.
  @throws IllegalArgumentException if <code>name</code> is not a valid
  property type name.