addToFileCache(request, response, file);
sendFile(response, file);
}
private File lookupInADB(final String uri) {
final AlternateDocBase adb = AlternateDocBase.findMatch(
uri, alternateDocBases);
if (adb != null) {
File file = new File(adb.getBasePath(), uri);
boolean exists = file.exists();
boolean isDirectory = file.isDirectory();
if (exists && isDirectory) {
file = new File(file, "/index.html");