code: public static boolean isExtensionMatch(String uriName, String urlPattern) {
          if (urlPattern.startsWith("*.")) {
              String ext = urlPattern.substring(1);
              if (uriName.endsWith(ext)) {
                  return true;
              }
          }
          return false;
      }
docs: Determine if the urlPattern is an extension match for the uriName.
  
  @param uriName
  @param urlPattern
  @return