public URI normalize(){
  if (opaque) {
    return this;
  }
  String normalizedPath=normalize(path,false);
  if (path.equals(normalizedPath)) {
    return this;
  }
  URI result=duplicate();
  result.path=normalizedPath;
  result.setSchemeSpecificPart();
  return result;
}

public URI normalize ( ) { if ( opaque ) { return this ; } String normalizedPath = normalize ( path , false ) ; if ( path . equals ( normalizedPath ) ) { return this ; } URI result = duplicate ( ) ; result . path = normalizedPath ; result . setSchemeSpecificPart ( ) ; return result ; }
normalizes the path part of this uri .
