@Override
    public byte[] marshal ( Object o ) throws Exception {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        SerializationContext sc = new SerializationContext();
        AmfMessageSerializer serializer = new AmfMessageSerializer();
        serializer.initialize(sc, bos, new AmfTrace());
        ActionMessage am = new ActionMessage(MessageIOConstants.AMF3);
        am.addHeader(new MessageHeader("payl", false, o));
        serializer.writeMessage(am);
        return bos.toByteArray();
    }
{@inheritDoc}

@see marshalsec.BlazeDSBase#marshal(java.lang.Object)
src/main/java/marshalsec/BlazeDSAMF3AM.java