code: public <T> Class<T> getType(String typeName) {
          try {
              return (Class<T>) classLoader.loadClass(typeName);
          } catch (ClassNotFoundException e) {
              throw new IllegalArgumentException("Cannot find class " + typeName, e);
          }
      }
docs: Create and return an instance of the given type name.
  
  @param typeName The type name.
  @param <T>      The type.
  @return The instance.