public static UriBuilder fromPath(String path) {
        if (path == null)
            throw new IllegalArgumentException("Path cannot be null");

        final UriBuilder builder = newInstance();
        builder.path(path);
        return builder;
    }
public static UriBuilder fromPath ( String path ) { if ( path == null ) throw new IllegalArgumentException ( "Path cannot be null" ) ; final UriBuilder builder = newInstance ( ) ; builder . path ( path ) ; return builder ; }
Create a new instance representing a relative URI initialized from a URI path.

@param path a URI path that will be used to initialize the UriBuilder, may contain URI template parameters.

@return a new UriBuilder

@throws IllegalArgumentException if path is null