try {
if (waitForAck) {
channel.confirmSelect();
}
for (EventMessage event : events) {
AMQPMessage amqpMessage = messageConverter.createAMQPMessage(event);
doSendMessage(channel, amqpMessage);
}
if (CurrentUnitOfWork.isStarted()) {
CurrentUnitOfWork.get().registerListener(new ChannelTransactionUnitOfWorkListener(channel));
} else if (isTransactional) {