@Override public boolean pathMatch(final String path,final String topmostPath){
  boolean match=path.startsWith(topmostPath);
  if (match && path.length() != topmostPath.length()) {
    if (!topmostPath.endsWith(PATH_DELIM)) {
      match=(path.charAt(topmostPath.length()) == PATH_DELIM_CHAR);
    }
  }
  return match;
}

@ Override public boolean pathMatch ( final String path , final String topmostPath ) { boolean match = path . startsWith ( topmostPath ) ; if ( match && path . length ( ) != topmostPath . length ( ) ) { if ( ! topmostPath . endsWith ( PATH_DELIM ) ) { match = ( path . charAt ( topmostPath . length ( ) ) == PATH_DELIM_CHAR ) ; } } return match ; }
performs path - match as implemented in common browsers .
