doSendMessage(channel, amqpMessage);
}
if (CurrentUnitOfWork.isStarted()) {
CurrentUnitOfWork.get().registerListener(new ChannelTransactionUnitOfWorkListener(channel));
} else if (isTransactional) {
channel.txCommit();
} else if (waitForAck) {
channel.waitForConfirmsOrDie();
}
} catch (IOException e) {
if (isTransactional) {