in src/main/java/org/apache/sling/bundleresource/impl/BundleResource.java [295:310]
private URL getURL() {
if (resourceUrl == null) {
final URL url = this.cache.getEntry(mappedPath.getEntryPath(this.path));
if ( url != null ) {
try {
resourceUrl = new URL(BundleResourceURLStreamHandler.PROTOCOL, null,
-1, path, new BundleResourceURLStreamHandler(
cache.getBundle(), mappedPath.getEntryPath(path)));
} catch (MalformedURLException mue) {
log.error("getURL: Cannot get URL for " + this, mue);
}
}
}
return resourceUrl;
}