MessageDelegate del = JBossMessage.createThinDelegate((JBossMessage)m);
   protected Message processMessage(Message m)   {      //We create a thin delegate to the message - which prevents it having to be      //unnecessarily copied      MessageDelegate del = JBossMessage.createThinDelegate((JBossMessage)m);            //if this is the handler for a connection consumer we don't want to set the session delegate      //since this is only used for client acknowledgement which is illegal for a session      //used for an MDB      if (!this.isConnectionConsumer)      {         del.setSessionDelegate(sessionDelegate);      }               del.setReceived();            return del;   }