code: public static <T> Class<T> loadClass(String className, ClassLoader classloader) {
          if(className == null) {
              throw new IllegalArgumentException("className cannot be null");
          }
  
          if(classloader == null) {
              throw new IllegalArgumentException("classloader cannot be null");
          }
  
          try {
              return (Class<T>) Class.forName(className, false, classloader);
          } catch (ClassNotFoundException e) {
              throw new RuntimeException(e);
          }
      }
docs: Load a class from a specific classloader