code: public static Class<?> tryLoadClass(String className) throws ClassNotFoundException {
          try {
              return Class.forName(className);
          } catch (ClassNotFoundException e) {
              ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
              return contextClassLoader.loadClass(className);
          }
      }
docs: Tries to load the given class.
  
  @param className Name of the class to load
  @return Loaded class
  @throws ClassNotFoundException when the class is not found