code: public static boolean matchPath(String path, String pattern) {
  		List<String> pathElements = PATH_SPLITTER.splitToList(path);
  		List<String> patternElements = PATH_SPLITTER.splitToList(pattern);
  		return matchTokens(pathElements.toArray(new String[0]), patternElements.toArray(new String[0]));
  	}
docs: Matches path against pattern using *, ? and ** wildcards. Both path and the pattern are tokenized on path
  separators (both \ and /). '**' represents deep tree wildcard, as in Ant. The separator should match the
  corresponding path