private UriBuilder getURIBuilder(String path, Object[] queryParams) {
        if (path == null) {
            path = "";
        }
        UriBuilder builder = UriBuilder.fromPath(path);
        if (queryParams != null) {
            for (int i = 0; i < queryParams.length; i += 2) {
                String param = queryParams[i].toString();
                Object value = queryParams[i + 1];
                if (value != null) {
                    if (value instanceof Collection) {
                        Object[] values = ((Collection<?>) value).toArray();
                        builder.queryParam(param, values);
                    } else {
                        builder.queryParam(param, value);
                    }
                }
            }
        }
        return builder;
    }
Uses the {@link PayloadStorage} for downloading large payloads to be used by the client. Gets
the uri of the payload fom the server and then downloads from this location.

@param payloadType the {@link
    com.netflix.conductor.common.utils.ExternalPayloadStorage.PayloadType} to be downloaded
@param path the relative of the payload in external storage
@return the payload object that is stored in external storage
client/src/main/java/com/netflix/conductor/client/http/ClientBase.java