@Override
public XAMessageProducer createXAProducer(final PartitionSelector partitionSelector) {
if (partitionSelector == null) {
throw new IllegalArgumentException("Null partitionSelector");
}
return this.addChild(new SimpleXAMessageProducer(this, this.remotingClient, partitionSelector,
this.producerZooKeeper, this.sessionIdGenerator.generateId()));
}