if (log.isTraceEnabled()) log.trace("reset()");
if (trace) log.trace("reset()");
   public void reset() throws JMSException   {      if (log.isTraceEnabled()) log.trace("reset()");      try      {         if (ostream != null)         {            if (log.isTraceEnabled())  { log.trace("Flushing ostream to array"); }            p.flush();            payload = ostream.toByteArray();            if (log.isTraceEnabled()) { log.trace("Array is now: " + payload); }            ostream.close();         }         ostream = null;         istream = null;         m = null;         p = null;      }      catch (IOException e)      {         throw new JBossJMSException("IOException", e);      }   }