@Override
    public FileVisitResult visitFile(Path file,
                                   BasicFileAttributes attr) {    	    	
        String name =  "" + file;    	
        if (!name.toLowerCase().contains("sopa")) {
          return CONTINUE;
        }
    	if (attr.isRegularFile()) {
    		if (name.endsWith(".txt")) {
	    		for (JSONArray comments : extractor.extractFromCrawler(file, related)) {
	    			this.docs.addJSONComments(comments);
	    		}
    		} else if (Character.isDigit(name.charAt(name.length() - 1))) {
    			this.docs.addComments(extractor.extractFromDUC(file));
    		}
    	}
    	
        return CONTINUE;
    }