in tiles-request-api/src/main/java/org/apache/tiles/request/locale/URLApplicationResource.java [150:164]
private URLConnection openConnection() throws IOException {
try {
return url.openConnection();
} catch (IOException e) {
// If the url points to a local resource but it cannot be
// opened, then the resource actually does not exist. In this
// case throw a FileNotFoundException
if (local) {
FileNotFoundException fne = new FileNotFoundException(url.toString());
fne.initCause(e);
throw fne;
}
throw e;
}
}