this.rm = rm; this.session = session; this.sessionState = sessionState;
this.sessionState = sessionState;  this.connection = (ConnectionDelegate)((ConnectionState)sessionState.getParent()).getDelegate();
   public JBossXAResource(ResourceManager rm, SessionDelegate session, SessionState sessionState)   {      trace = log.isTraceEnabled();            this.rm = rm;      this.session = session;      this.sessionState = sessionState;               }