protected static String canonicalizePrefix(String prefix){
  prefix=prefix.replace('\\','/');
  if (prefix.length() > 0 && !prefix.endsWith("/")) {
    prefix+="/";
  }
  return prefix;
}

protected static String canonicalizePrefix ( String prefix ) { prefix = prefix . replace ( '\\' , '/' ) ; if ( prefix . length ( ) > 0 && ! prefix . endsWith ( "/" ) ) { prefix += "/" ; } return prefix ; }
can be used by subclasses to canonicalize url path prefixes .
