private static URL[] toUrls(final Collection<Path> jarPaths) {
        final URL[] jarUrls = new URL[jarPaths.size()];

        int index = 0;
        for (final Path jarPath : jarPaths) {
            try {
                jarUrls[index] = jarPath.toUri().toURL();
            } catch (final MalformedURLException ex) {
                throw new LinkageError("Invalid path to JAR: " + jarPath.toString(), ex);
            }
            ++index;
        }
        return jarUrls;
    }
A singleton class loader to load classes of embulk-core's hidden dependency libraries, such as Jackson.

<p>This class loader is introduced only to control the visibility from plugins, not for customizability.
It is intentionally designed to be a singleton.
embulk-core/src/main/java/org/embulk/EmbulkDependencyClassLoader.java