code: private static ClassLoader pluginClassLoader(final Path plugin,
                                                 final ClassLoader environment,
                                                 final ClassLoader parent) {
      final URL url;
      try {
        url = plugin.toFile().toURI().toURL();
      } catch (MalformedURLException e) {
        throw new RuntimeException("Failed to load plugin jar " + plugin, e);
      }
      final ClassLoader providedClassLoader = new FilteringClassLoader(PROVIDED, environment, parent);
      return new URLClassLoader(new URL[]{ url }, providedClassLoader);
    }
docs: Create a class loader for a plugin jar.