code: private boolean isPartialMatch(Pattern pattern, String path) {
  
          Matcher matcher = pattern.matcher(path);
          if (matcher.matches()) {
              return true;
          }
  
          if (!path.endsWith("/")) {
              matcher = pattern.matcher(path + "/");
              return matcher.matches();
          }
  
          return false;
          // return matcher.hitEnd();
      }
docs: Returns if the given path matches or partially matches the pattern.<p>
  
  For example the regex "/system/modules/" should match the path "/system/".
  That's not working with Java 1.4. Starting with Java 1.5 there are possiblities
  to do that. Until then you have to configure all parent paths as a regex filter.<p>
  
  @param pattern the pattern to use
  @param path the path to test if the pattern matches (partially)
  
  @return true if the path matches (partially) the pattern