ServerSessionEndpoint session = (ServerSessionEndpoint)sessions.get(new Integer(sessionState.getSessionId()));
ServerSessionEndpoint session = serverPeer.getSession(new Integer(sessionState.getSessionId()));
   private void processTransaction(ClientTransaction txState, Transaction tx) throws Throwable   {      if (trace) { log.trace("processing transaction"); }            synchronized (sessions)      {                  for (Iterator i = txState.getSessionStates().iterator(); i.hasNext(); )         {            SessionTxState sessionState = (SessionTxState)i.next();                        List msgs = sessionState.getMsgs();                        for (Iterator i2 = msgs.iterator(); i2.hasNext(); )            {               JBossMessage msg = (JBossMessage)i2.next();                                    sendMessage(msg, tx);            }                                 List acks = sessionState.getAcks();                        ServerSessionEndpoint session = (ServerSessionEndpoint)sessions.get(new Integer(sessionState.getSessionId()));                        session.acknowledgeTransactionally(acks, tx);               }      }            if (trace) { log.trace("Processed transaction"); }   }   