code: private WebTarget applyQueryParams(WebTarget target, List<String> queryParams)
      {
          if(queryParams != null)
          {
              for(int i = 0; i < queryParams.size(); i += 2)
              {
                  target = target.queryParam(queryParams.get(i), queryParams.get(i+1));
              }
          }
  
          return target;
      }
docs: Add the given set of query parameters to the web target.
  @param target The web target to add the parameters to
  @param queryParams The query parameters to add
  @return The updated target