URI uri = this.getURI();
URI uriWithQueryString = null;
try {
String query = URLEncodedUtils.format(parms, "UTF-8");
URIBuilder ub = new URIBuilder(uri);
<BUG>final List<NameValuePair> params = URLEncodedUtils.parse(query, Charset.forName("UTF-8"));
ub.setParameters(params);
uriWithQueryString = ub.build();</BUG>
this.setURI(uriWithQueryString);
} catch (URISyntaxException e) {

URI uri = this.getURI();
URI uriWithQueryString = null;
try {
String query = URLEncodedUtils.format(parms, "UTF-8");
URIBuilder ub = new URIBuilder(uri);
final List<NameValuePair> params = URLEncodedUtils.parse(query, Charset.forName("UTF-8"));
if (!params.isEmpty()) {
ub.setParameters(params);
}
uriWithQueryString = ub.build();
this.setURI(uriWithQueryString);
} catch (URISyntaxException e) {
