docs: public static GeneratedClassLoader createLoader(
          ClassLoader parent, Object staticDomain)
      {
          Context cx = Context.getContext();
          if (parent == null) {
              parent = cx.getApplicationClassLoader();
          }
          SecurityController sc = cx.getSecurityController();
          GeneratedClassLoader loader;
          if (sc == null) {
              loader = cx.createClassLoader(parent);
          } else {
              Object dynamicDomain = sc.getDynamicSecurityDomain(staticDomain);
              loader = sc.createClassLoader(parent, dynamicDomain);
          }
          return loader;
      }