public static void generateResults(ConcurrentHashMap allDocPairs, int minMatchingTokens) {

        resultsDocPairs.clear();

        Iterator it = allDocPairs.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry termEntry = (Map.Entry) it.next();
            int matchingTokens = Integer.parseInt(termEntry.getValue().toString());
            if (matchingTokens >= minMatchingTokens) {
                resultsDocPairs.put(termEntry.getKey().toString(), Integer.parseInt(termEntry.getValue().toString()));

            }
        }
    }