@Override
	public boolean pathMatchesUrl(Object path, String url) {
		if ("/**".equals(path) || "**".equals(path)) {
			return true;
		}
		
		// useTrailingSlashMatch
		url = (useTrailingSlashMatch && url.length() >= 1 && url.charAt(url.length() - 1) =='/')
				? url.substring(0, url.length() - 1): url;
		return pathMatcher.match((String)path, url);
	}