code: private static Class<?> loadClass(final String className) throws ClassNotFoundException {
  
          ClassLoader ctxCL = Thread.currentThread().getContextClassLoader();
          if (ctxCL == null) {
              return Class.forName(className);
          }
          return ctxCL.loadClass(className);
      }
docs: Loads the class specified by name using the Thread's context class loader - if defined - otherwise the default
  classloader.
  
  @param className
  the name of the class to load
  
  @return the loaded class
  
  @throws ClassNotFoundException
  if the the class could not be loaded