public static URI toLocation(URI sourceUri, String table) {
        getLocationType(sourceUri); // Raises an exception if the location type is invalid.
        return UriBuilder.fromUri(sourceUri).path(table).build();
    }
public static URI toLocation ( URI sourceUri , String table ) { getLocationType ( sourceUri ) ; return UriBuilder . fromUri ( sourceUri ) . path ( table ) . build ( ) ; }
Returns a Location URI from a source URI and table name.