code: public static <T> Class<T> loadClass(String className, ResourceLoader resourceLoader) {
          try {
              return cast(resourceLoader.classForName(className));
          } catch (ResourceLoadingException e) {
              return null;
          } catch (SecurityException e) {
              return null;
          }
      }
docs: Tries to load a class using the specified ResourceLoader. Returns null if the class is not found.
  @param className
  @param resourceLoader
  @return the loaded class or null if the given class cannot be loaded