code: private HttpResponse execute(HttpClient client, HttpUriRequest request) throws IOException {
          if (localContext != null) {
              return client.execute(request, localContext);
          } else {
              return client.execute(request);
          }
      }
docs: executes a request with the localContext, if set