public void visit(Object vfsResource) {
            if (this.pathMatcher.match(this.subPattern,
                VfsPatternUtils.getPath(vfsResource).substring(this.rootPath.length()))) {
                this.resources.add(new VfsResource(vfsResource));
            }
        }
VFS visitor for path matching purposes.
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/support/PathMatchingResourcePatternResolver.java