private XmsPooledConsumer PlainProducerFactory(Pool<XmsPooledConsumer> pool, XmsDestination destination)
 {
     log.Info("Going to create new plain consumer for destination {0}".FormatWith(destination));
     var producer = new XmsConsumer(destination, transactional);
     var pooled = new XmsPooledConsumer(pool, producer);
     return pooled;
 }
 public XmsTransactedConsumer(XmsConsumer consumer)
     : this(consumer, consumer.Session)
 {
 }