@Override
    public byte[] toByteArray(Serializable body) throws MetaClientException {
        try {
            return this.serializer.encodeObject(body);
        }
        catch (IOException e) {
            throw new MetaClientException(e);

        }
    }
Message body converter using java serialization.

@author dennis<killme2008@gmai.com>
@since 1.4.5
metamorphosis-client/src/main/java/com/taobao/metamorphosis/client/extension/spring/JavaSerializationMessageBodyConverter.java