code: private WebTarget createWebTarget(String restPath, Map<String, String> queryParams) {
  		WebTarget webTarget;
  		try {
  			URI u = new URI(this.baseURI + "/plugins/restapi/v1/" + restPath);
  			Client client = createRestClient();
  
  			webTarget = client.target(u);
  			if (queryParams != null && !queryParams.isEmpty()) {
  				for (Map.Entry<String, String> entry : queryParams.entrySet()) {
  					if (entry.getKey() != null && entry.getValue() != null) {
  						LOG.debug("PARAM: {} = {}", entry.getKey(), entry.getValue());
  						webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());
  					}
  				}
  			}
  
  		} catch (Exception e) {
  			throw new IllegalArgumentException("Something went wrong by creating the client: " + e);
  		}
  
  		return webTarget;
  	}
docs: Creates the web target.
  
  @param restPath
  the rest path
  @param queryParams
  the query params
  @return the web target