in src/main/java/org/apache/sling/scripting/java/impl/SlingIOProvider.java [150:157]
public URL getURL(String path) throws MalformedURLException {
try {
final Resource resource = getResourceInternal(path);
return resource != null ? resource.adaptTo(URL.class) : null;
} catch (SlingException se) {
throw (MalformedURLException) new MalformedURLException("Cannot get URL for " + path).initCause(se);
}
}