ub = new HttpClientURIBuilder();
ub.setHost(getAuthority());
ub.setScheme(getScheme());
ub.setPath(getApiUrlPath().concat(uriPath).replaceAll("/{2,}", "/"));
for (Map.Entry<String, String> entry : getQueryParams().entrySet()) {
ub.addParameter(entry.getKey(), StringUtils.defaultIfEmpty(entry.getValue(), ""));
}
rawRequest.setURI(ub.build());
} catch (URISyntaxException e) {
throw new BoxRestException("URISyntaxException:" + e.getMessage());