public WebTarget path(String path) {
        if (path == null) throw new NullPointerException("The path argument of WebTarget cannot be null.");
        final UriBuilder copy = cloneUriBuilder();
        copy.path(path);
        return newWebTarget(copy);
    }
public WebTarget path ( String path ) { if ( path == null ) throw new NullPointerException ( "The path argument of WebTarget cannot be null." ) ; final UriBuilder copy = cloneUriBuilder ( ) ; copy . path ( path ) ; return newWebTarget ( copy ) ; }
Create a new WebTarget instance by appending path to the URI of the current target instance.
<p/>
When constructing the final path, a '/' separator will be inserted between the existing path and the supplied
path if necessary. Existing '/' characters are preserved thus a single value can represent multiple URI path
segments.
<p/>
A snapshot of the present configuration of the current (parent) target instance is taken and is inherited by the
newly constructed (child) target instance.

@param path  the path, may contain URI template parameters.

@return  a new target instance.

@throws NullPointerException  if path is null.