code: protected boolean doesUriMatchPattern(final String requestPath, final String patternUrl) {
          val pattern = Pattern.compile('/' + patternUrl + "(/)*$");
          return pattern.matcher(requestPath).find();
      }
docs: Does uri match pattern.
  
  @param requestPath the request path
  @param patternUrl  the pattern
  @return the boolean