code: protected <T> Class<T> getType(String typeName) throws PluginRepositoryException {
          try {
              return (Class<T>) classLoader.loadClass(typeName.trim());
          } catch (ClassNotFoundException | LinkageError e) {
              // Catching class loader related errors for logging a message which plugin class
              // actually caused the problem.
              throw new PluginRepositoryException("Cannot find or load class " + typeName, e);
          }
      }
docs: Get the class for the given type name.
  
  @param typeName
  The type name.
  @param <T>
  The type name.
  @return The class.
  @throws PluginRepositoryException
  If the type could not be loaded.