for (String path : paths) {
String relName = path.substring(this.directory.length());
if (isDirectory(path)) {
scanDirectory(path, visitor);
} else {
FileInfo fileInfo = new SimpleFileInfo(relName);
try {
if (selector.isSelected(fileInfo)) {
URLConnection cn = servletContext.getResource(path).openConnection();
long lastModified = cn.getLastModified();
visitor.visit(path, lastModified);