private Class<?> resolveClassIfNeeded(final Class<?> clazz, final boolean resolve) {
        if (resolve) {
            this.resolveClass(clazz);
        }
        return clazz;
    }
Finds the resource with the given name from JRuby.

<p>It prioritizes a resource found by this class loader over a class loaded by the parent class loader.
embulk-core/src/main/java/org/embulk/jruby/JRubyClassLoader.java