let getResource have the same semantic as loadClass for JRubyClassLoader