if (!messageReadWrite)
if (bodyReadOnly)
   public void setObject(String name, Object value) throws JMSException   {      checkName(name);      if (!messageReadWrite)         throw new MessageNotWriteableException("Message is ReadOnly !");      if (value instanceof Boolean)         content.put(name, value);      else if (value instanceof Byte)         content.put(name, value);      else if (value instanceof Short)         content.put(name, value);      else if (value instanceof Character)         content.put(name, value);      else if (value instanceof Integer)         content.put(name, value);      else if (value instanceof Long)         content.put(name, value);      else if (value instanceof Float)         content.put(name, value);      else if (value instanceof Double)         content.put(name, value);      else if (value instanceof String)         content.put(name, value);      else if (value instanceof byte[])         content.put(name, ((byte[]) value).clone());      else         throw new MessageFormatException("Invalid object type.");   }