if (bodyWriteOnly)
if (!bodyReadOnly)
   public Object readObject() throws JMSException   {      if (bodyWriteOnly)         throw new MessageNotReadableException("The message body is writeonly");      try      {         Object value = ((List)payload).get(position);         position++;         offset = 0;         return value;      }      catch (IndexOutOfBoundsException e)      {         throw new MessageEOFException("");      }   }