@Override
    public byte[] marshal ( Object o ) throws Exception {
        SerializationContext sc = new SerializationContext();
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        AmfxMessageSerializer out = new AmfxMessageSerializer();
        out.initialize(sc, bos, null);
        ActionMessage m = new ActionMessage();
        m.addHeader(new MessageHeader("foo", false, o));
        out.writeMessage(m);
        return bos.toByteArray();
    }
{@inheritDoc}

@see marshalsec.MarshallerBase#marshal(java.lang.Object)
src/main/java/marshalsec/BlazeDSAMFX.java