code: public ApiClient rebuildHttpClient() {
      // Add the JSON serialization support to Jersey
      JacksonJsonProvider jsonProvider = new JacksonJsonProvider(objectMapper);
      DefaultClientConfig conf = new DefaultClientConfig();
      conf.getSingletons().add(jsonProvider);
      Client client = Client.create(conf);
      client.addFilter(new GZIPContentEncodingFilter(false));
      if (debugging) {
        client.addFilter(new LoggingFilter());
      }
      this.httpClient = client;
      return this;
    }
docs: Build the Client used to make HTTP requests with the latest settings,
  i.e. objectMapper and debugging.
  TODO: better to use the Builder Pattern?
  
  @return API client