if (log.isTraceEnabled()) { log.trace("recover called"); }
if (trace) { log.trace("recover called"); }
   public Object handleRecover(Invocation invocation) throws Throwable   {      if (log.isTraceEnabled()) { log.trace("recover called"); }            int ackMode = getState(invocation).getAcknowledgeMode();            if (ackMode == Session.SESSION_TRANSACTED)      {         throw new IllegalStateException("Cannot recover a transacted session");      }            //Tell the server to redeliver any un-acked messages      if (log.isTraceEnabled()) { log.trace("redelivering messages"); }            MethodInvocation mi = (MethodInvocation)invocation;            SessionDelegate del = (SessionDelegate)mi.getTargetObject();            //String asfConsumerID = getState(invocation).getAsfConsumerID();            if (log.isTraceEnabled()) { log.trace("Calling sessiondelegate.redeliver()"); }            del.cancelDeliveries();            return null;     }