docs: public static ClassLoader getClassLoader(Class<?> cls) {
          ClassLoader cl = null;
          try {
              cl = Thread.currentThread().getContextClassLoader();
          } catch (Throwable ex) {
              // Cannot access thread context ClassLoader - falling back to system
              // class loader...
          }
          if (cl == null) {
              // No thread context class loader -> use class loader of this class.
              cl = cls.getClassLoader();
          }
          return cl;
      }