code: public static String getUrlMapping(String url, Map<String, String> urlMappings) {
          if (urlMappings != null) {
              for (String pattern : urlMappings.keySet()) {
                  if (urlMatcher.match(pattern, url)) {
                      return urlMappings.get(pattern);
                  }
              }
          }
          
          return null;
      }
docs: Returns the target of a url pattern mapping.
  
  @param url Ant-style url pattern
  @param urlMappings Map of url pattern mappings
  @return String mapped to pattern, or null if none.