final Producer<Integer, byte[]> producer = new Producer<Integer, byte[]>(producerConfig);
final ProducerConfiguration<Integer, byte[]> producerConfiguration = new ProducerConfiguration<Integer, byte[]>(
producerMetadata, producer);
MessageHandler messageHandler = new AbstractMessageHandler() {
@Override
protected void handleMessageInternal(Message<?> message) throws Exception {
producerConfiguration.send(message);
}