code: @Override
  	public void setObject(Serializable object) throws JMSException
      {
      	if (bodyIsReadOnly)
      		throw new MessageNotWriteableException("Message body is read-only");
      	
      	assertDeserializationLevel(MessageSerializationLevel.FULL);
      	
          if (object == null)
          {
              body = null;
              return;
          }
          
          try
          {
          	body = SerializationTools.toByteArray(object);
          }
          catch (Exception e)
          {
          	throw new FFMQException("Cannot serialize object message body","MESSAGE_ERROR",e);
          }
      }
docs: /*
  (non-Javadoc)
  @see javax.jms.ObjectMessage#setObject(java.io.Serializable)