code: @Override
  	public void writeObject(Object value) throws JMSException
      {
          if (value != null)
          {
          	// Check supported types
  	        if (!(value instanceof Boolean ||
  	              value instanceof Byte ||
  	              value instanceof Character ||
  	              value instanceof Short ||
  	              value instanceof Integer ||
  	              value instanceof Long ||
  	              value instanceof Float ||
  	              value instanceof Double ||
  	              value instanceof String ||
  	              value instanceof byte[]))
  	            throw new MessageFormatException("Unsupported value type : "+value.getClass().getName());
          }
          
          write(value);
      }
docs: /*
  (non-Javadoc)
  @see javax.jms.StreamMessage#writeObject(java.lang.Object)