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