{ if (!isXA) throw new IllegalStateException("Is not an XASession");
{
   public XAResource getXAResource()   {            if (!isXA) throw new IllegalStateException("Is not an XASession");           throw new NotYetImplementedException();   }