if (!bodyWriteOnly)
if (bodyReadOnly)
   public void writeBoolean(boolean value) throws JMSException   {      if (!bodyWriteOnly)      {         throw new MessageNotWriteableException("the message body is read-only");      }      try      {         p.writeBoolean(value);      }      catch (IOException e)      {         throw new JMSException("IOException");      }   }