code: public static <T> T convertFromString(String text, Class<T> typeClass)
      {
          Class<? extends PropertyEditor> editorClass = null;
          synchronized (editors)
          {
              editorClass = editors.get(typeClass);
          }
          if (editorClass != null)
          {
              PropertyEditor editor = newPropertyEditor(editorClass);
              if (editor != null)
              {
                  try
                  {
                      return (T)convertFromString(editor, text);
                  }
                  catch (IllegalArgumentException x)
                  {
                      // Fallback to the default editors
                  }
              }
          }
  
          PropertyEditor editor = PropertyEditorManager.findEditor(typeClass);
          if (editor != null) return (T)convertFromString(editor, text);
  
          return null;
      }
docs: Converts the given text string to an object of the given type class.
  <br />
  If no editor is registered for the given type class, or if it fails the conversion, the default
  property editor from {@link PropertyEditorManager} is tried.
  
  @param text      the text string to convert into an object
  @param typeClass the class of the object to return
  @return an object of the given type class converted from the given text string