xaResource = new JBossXAResource(parent.getResourceManager(), delegate, this);
   public SessionState(ConnectionState parent, SessionDelegate delegate, boolean transacted,         int ackMode, boolean xa)   {      super(parent, delegate);      children = new HashSet();      this.acknowledgeMode = ackMode;      this.transacted = transacted;      this.xa = xa;            if (transacted)      {         xaResource = new JBossXAResource(parent.getResourceManager(), delegate, this);                              //Create a local tx                                                           Object Xid = parent.getResourceManager().createLocalTx();                  xaResource.setCurrentTxID(Xid);                }      executor = new QueuedExecutor(new LinkedQueue());   }