code: public <K, V> KafkaProducer<K, V> createProducer(Serializer<K> keySerializer, Serializer<V> valueSerializer,
                                                       Properties overrideConfig) {
          Properties conf = producerConfig();
          if (overrideConfig != null) {
              conf.putAll(overrideConfig);
          }
          keySerializer.configure(Maps.fromProperties(conf), true);
          valueSerializer.configure(Maps.fromProperties(conf), false);
          return new KafkaProducer<>(conf, keySerializer, valueSerializer);
      }
docs: Create a producer that can write to this broker
  
  @param keySerializer   Key serializer class
  @param valueSerializer Valuer serializer class
  @param overrideConfig  Producer config to override. Pass null if there aren't any.
  @param <K>             Type of Key
  @param <V>             Type of Value
  @return KafkaProducer