code: @SuppressWarnings("rawtypes")
      public static Class loadClass(Class loaderClass, String name) throws ClassNotFoundException {
          if (loaderClass != null && loaderClass.getClassLoader() != null)
              return loaderClass.getClassLoader().loadClass(name);
          return loadClass(name);
      }
docs: Load a class. Load a class from the same classloader as the passed
  <code>loadClass</code>, or if none then use {@link #loadClass(String)}
  
  @param loaderClass a similar class, belong in the same classloader of the desired
  class to load
  @param name        the name of the new class to load
  @return Class
  @throws ClassNotFoundException if not able to find the class