}
@Override
public QueueConsumer createConsumer(QueueName queueName,
ConsumerConfig consumerConfig, int numGroups) throws IOException {
QueueConsumer consumer = queueClientFactory.createConsumer(queueName, consumerConfig, numGroups);
if (consumer instanceof TransactionAware) {
consumer = new CloseableQueueConsumer(this, consumer);
txAware.add((TransactionAware) consumer);
}
return consumer;