code: public static <T> Class<T> getType(String name) {
          Class<T> type;
          try {
              type = (Class<T>) Class.forName(name);
          } catch (ClassNotFoundException e) {
              throw new XOException("Cannot find class with name '" + name + "'", e);
          }
          return type;
      }
docs: Load a class.
  
  @param name
  The class name.
  @param <T>
  The expected class type.
  @return The class.