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