if (bodyWriteOnly)
if (!bodyReadOnly)
   public boolean readBoolean() throws JMSException   {      if (bodyWriteOnly)         throw new MessageNotReadableException("The message body is writeonly");      try      {         Object value = ((List)payload).get(position);         offset = 0;         if (value == null)            throw new NullPointerException("Value is null");         else if (value instanceof Boolean)         {            position++;            return ((Boolean) value).booleanValue();         }         else if (value instanceof String)         {            boolean result = Boolean.valueOf((String) value).booleanValue();            position++;            return result;         }         else            throw new MessageFormatException("Invalid conversion");      }      catch (IndexOutOfBoundsException e)      {         throw new MessageEOFException("");      }   }