code: public static ClassLoader getClassLoader(Class<?> cls) {
          ClassLoader cl = cls.getClassLoader();
          if (cl == null) {
              cl = getClassLoader();
          }
          return cl;
      }
docs: Returns the class loader used for loading the specified class.
  @param cls The class
  @return the class loader