docs: static String performUrlMatch(String uri, Collection<String> urlPatterns) {
          String match = null;
          String longestUrlPattern = null;
          for (String urlPattern : urlPatterns) {
              if (URLMatchingUtils.isExactMatch(uri, urlPattern)) {
                  return urlPattern;
              } else if (URLMatchingUtils.isPathNameMatch(uri, urlPattern)) {
                  longestUrlPattern = URLMatchingUtils.getLongestUrlPattern(longestUrlPattern, urlPattern);
              } else if (URLMatchingUtils.isExtensionMatch(uri, urlPattern)) {
                  match = urlPattern;
              }
          }
          if (longestUrlPattern != null) {
              match = longestUrlPattern;
          }
          return match;
      }