code: @Override
      public Client getClient()
      {
          ClientConfig config = new ClientConfig();
          config.register(GsonMessageBodyHandler.class);   
          Client client = ClientBuilder.newClient(config);
          client.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); // To support PATCH method
          client.register(new LicenseKeyFilter(this.licenseKey));
          if(logger.isLoggable(Level.FINE))
              client.register(new LoggingFeature(logger, Level.FINE, LoggingFeature.Verbosity.PAYLOAD_TEXT, 8192));
          return client;
      }
docs: Returns the HTTP client.
  @return The HTTP client