if (bodyWriteOnly)
if (!bodyReadOnly)
   public void clearBody() throws JMSException   {      try      {         if (bodyWriteOnly)         {            ostream.close();         }         else         {            // REVIEW: istream is only initialised on a read.            // It looks like it is possible to acknowledge            // a message without reading it? Guard against            // an NPE in this case.            if (istream != null)               istream.close();         }      }      catch (IOException e)      {         //don't throw an exception      }      ostream = new ByteArrayOutputStream();      p = new DataOutputStream(ostream);      payload = null;      istream = null;      m = null;            bodyWriteOnly = true;      super.clearBody();   }