private String normalize(String path,boolean discardRelativePrefix){
  path=UrlUtils.canonicalizePath(path,discardRelativePrefix);
  int colon=path.indexOf(':');
  if (colon != -1) {
    int slash=path.indexOf('/');
    if (slash == -1 || colon < slash) {
      path="./" + path;
    }
  }
  return path;
}

private String normalize ( String path , boolean discardRelativePrefix ) { path = UrlUtils . canonicalizePath ( path , discardRelativePrefix ) ; int colon = path . indexOf ( ':' ) ; if ( colon != - 1 ) { int slash = path . indexOf ( '/' ) ; if ( slash == - 1 || colon < slash ) { path = "./" + path ; } } return path ; }
returns the normalized path .
