// wait for the write
if (LOG.isTraceEnabled()) {
LOG.trace("Waiting for write to complete");
}
future.awaitUninterruptibly();
// if it was not a success then thrown an exception
if (!future.isSuccess()) {
LOG.warn("Cannot write body: " + body + " using channel: " + channel);
throw new CamelExchangeException("Cannot write body", exchange, future.getCause());