{
{ JBossMessage jm = (JBossMessage)m; jm.setSessionDelegate(sessionDelegate);
   public void handleCallback(InvocationRequest invocation) throws HandleCallbackException   {      Message m = (Message)invocation.getParameter();      if (log.isTraceEnabled()) { log.trace("receiving from server: " + m); }      try      {         messages.put(m);         if (log.isTraceEnabled()) { log.trace("message " + m + " accepted for delivery"); }      }      catch(InterruptedException e)      {         String msg = "Interrupted attempt to put message in the delivery buffer";         log.warn(msg);         throw new HandleCallbackException(msg, e);      }   }