File file = new File(docsRoot + url);
// if (file.canRead() == false) {
// throw new NotFoundException(url);
// }
if (file.isDirectory()) {
return new FsDirectoryResource(host, factory, file);
} else {
return new FsFileResource(host, factory, file);
}
}