code: protected static boolean matchPath(String pattern, String str,
                                         boolean isCaseSensitive) {
          return SelectorUtils.matchPath(pattern, str, isCaseSensitive);
      }
docs: Test whether or not a given path matches a given pattern.
  
  @param pattern The pattern to match against. Must not be
  <code>null</code>.
  @param str     The path to match, as a String. Must not be
  <code>null</code>.
  @param isCaseSensitive Whether or not matching should be performed
  case sensitively.
  
  @return <code>true</code> if the pattern matches against the string,
  or <code>false</code> otherwise.