public URL resolveURL(URL source, String path) throws IOException {
// PENDING(FCAPUTO): always go to the resolver to make resource libary contracts work with relative urls
if (path.startsWith("/")) {
URL url = this.resolver.resolveUrl(path);
if (url == null) {
throw new FacesFileNotFoundException(path
+ " Not Found in ExternalContext as a Resource");
}
return url;
} else {
return new URL(source, path);