URIBuilder uriBuilder = new URIBuilder();
for (Map.Entry<String, Collection<String>> stringCollectionEntry : queryParams.entrySet()) {
String key = stringCollectionEntry.getKey();
Collection<String> stringCollection = stringCollectionEntry.getValue();
String value = joiner.join(stringCollection);
uriBuilder.addParameter(key, value);
}
uriBuilder.setFragment(requestUri.getFragment());
uriBuilder.setHost(requestUri.getHost());
uriBuilder.setPath(requestUri.getPath());
uriBuilder.setPort(requestUri.getPort());