static boolean isParentFirstPackage(final String name) {
        final int dotIndex = name.lastIndexOf(".");

        final String packageNameWithLastDot;
        if (dotIndex < 0) {
            packageNameWithLastDot = "";
        } else {
            packageNameWithLastDot = name.substring(0, dotIndex + 1);
        }

        if (packageNameWithLastDot.startsWith("ch.qos.logback.classic.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("ch.qos.logback.core.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("java.")) {
            return true;
        }
        if (packageNameWithLastDot.equals("org.embulk.")) {  // Exact the package "org.embulk"
            return true;
        }
        // Some packages under "org.embulk." are intentionally excluded, for example,
        // - Packages for plugins, such as "org.embulk.input." and "org.embulk.parser."
        // - Packages under "org.embulk.base.", "org.embulk.deps.", and "org.embulk.util."
        if (packageNameWithLastDot.startsWith("org.embulk.cli.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.embulk.config.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.embulk.exec.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.embulk.jruby.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.embulk.plugin.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.embulk.spi.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.embulk.test.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.embulk.junit5.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.msgpack.core.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.msgpack.value.")) {
            return true;
        }
        if (packageNameWithLastDot.startsWith("org.slf4j.")) {
            return true;
        }

        return false;
    }
Loads the class with the specified binary name, forcibly in this {@code PluginClassLoader}, never in the parent class loader.

@param name  The binary name of the class
@param resolve  If true then resolve the class
@return The resulting Class object
@throws ClassNotFoundException  If the class could not be found

@deprecated Do not use this method. This method is only for internal use by Embulk's own testing framework.
embulk-core/src/main/java/org/embulk/plugin/PluginClassLoader.java