// check current directory; if file exists, retrieve URL and return resource
try {
JRubyFile file = JRubyFile.create(runtime.getCurrentDirectory(), RubyFile.expandUserPath(runtime.getCurrentContext(), namePlusSuffix));
if (file.isFile() && file.isAbsolute()) {
try {
foundResource = new LoadServiceResource(file.toURI().toURL(), namePlusSuffix);
state.loadName = namePlusSuffix;
break;
} catch (MalformedURLException e) {
throw runtime.newIOErrorFromException(e);
}