private void checkPath(final Path path) {
            String pathName = root.relativize(path).toString();
            boolean foundIt = false;
            for (Map.Entry<Pattern, Boolean> entry : pathsFound.entrySet()) {
                if (entry.getKey().matcher(pathName).matches()) {
                    entry.setValue(Boolean.TRUE);
                    foundIt = true;
                    break;
                }
            }
            if (!foundIt) {
                pathsNotMatched.add(pathName);
            }
        }
Constructor.

@param root            Root of the thing we're searching. Used to make paths relative.
@param pathsFound      Map of patterns and whether they've been found
@param pathsNotMatched List of paths we've found that weren't matched.
stroom-app/src/test/java/stroom/importexport/TestImportExportGitRepo.java