if (!messageReadWrite)
if (!propertiesWritable)
   public void setObjectProperty(String name, Object value) throws JMSException   {      if (!messageReadWrite)      {         throw new MessageNotWriteableException("Properties are read-only");      }      checkProperty(name, value);      if (value instanceof Boolean)      {         properties.put(name, value);      }      else if (value instanceof Byte)      {         properties.put(name, value);      }      else if (value instanceof Short)      {         properties.put(name, value);      }      else if (value instanceof Integer)      {         properties.put(name, value);      }      else if (value instanceof Long)      {         properties.put(name, value);      }      else if (value instanceof Float)      {         properties.put(name, value);      }      else if (value instanceof Double)      {         properties.put(name, value);      }      else if (value instanceof String)      {         properties.put(name, value);      }      else if (value == null)      {         properties.put(name, null);      }      else      {         throw new MessageFormatException("Invalid object type");      }   }