ProducerCache producerCache = component.getProducerCache();
Producer producer = producerCache.acquireProducer(endpoint);
try {
producer.process(exchange);
} finally {
producerCache.releaseProducer(endpoint, producer);
}
}
@Override
public String toString() {