code: private void buildQueryString() throws MalformedURLException {
  		StringBuilder builder = new StringBuilder();
  
  		// Put the query parameters on the URL before issuing the request
  		if (!query.isEmpty()) {
  			for (Map.Entry<String, String> param : query.entrySet()) {
  				builder.append(param.getKey());
  				builder.append("=");
  				builder.append(param.getValue());
  				builder.append("&");
  			}
  			builder.deleteCharAt(builder.lastIndexOf("&")); // Remove the trailing ampersand
  		}
  
  		if (builder.length() > 0) {
  			// If there was any query string at all, begin it with the question mark
  			builder.insert(0, "?");
  		}
  
  		url = new URL(url.toString() + builder.toString());
  	}
docs: A private method that loops through the query parameter Map, building a String to be appended to the URL.
  
  @throws MalformedURLException