code: static public void addConfigurator(ClientConfigurator<?> configurator) {
      if (!HttpClientConfigurator.class.isInstance(configurator) && !OkHttpClientConfigurator.class.isInstance(configurator)) {
        throw new IllegalArgumentException(
          "Configurator must implement OkHttpClientConfigurator"
        );
      }
  
      clientConfigurator = configurator;
    }
docs: Adds a listener that provides custom configuration when a communication library
  is created.
  @see com.marklogic.client.extra.okhttpclient.OkHttpClientConfigurator
  @param configurator	the listener for configuring the communication library