if (!bodyWriteOnly)
if (bodyReadOnly)
   public void writeObject(Object value) throws JMSException   {      if (!bodyWriteOnly)         throw new MessageNotWriteableException("The message body is readonly");      if (value == null)         ((List)payload).add(null);      else if (value instanceof Boolean)         ((List)payload).add(value);      else if (value instanceof Byte)         ((List)payload).add(value);      else if (value instanceof Short)         ((List)payload).add(value);      else if (value instanceof Character)         ((List)payload).add(value);      else if (value instanceof Integer)         ((List)payload).add(value);      else if (value instanceof Long)         ((List)payload).add(value);      else if (value instanceof Float)         ((List)payload).add(value);      else if (value instanceof Double)         ((List)payload).add(value);      else if (value instanceof String)         ((List)payload).add(value);      else if (value instanceof byte[])         ((List)payload).add(((byte[]) value).clone());      else         throw new MessageFormatException("Invalid object type");   }