if (dir.exists()) {
logger.info("ResourceManager initialised: type[file] [" + fileDir + "]");
return new FileResourceSource(fileDir);
} else {
String msg = "ResourceManager could not find directory [" + fileDir + "]";
throw new NotFoundException(msg);
}
}
// try to guess the directory starting from the current working
// directory, and searching to a maximum depth of 3 subdirectories