@Override
    public byte[] marshal ( Object o ) throws Exception {
        SerializationContext sc = new SerializationContext();
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        try ( AbstractAmfOutput out = createOutput(sc) ) {
            out.setOutputStream(bos);
            out.writeObject(o);
            return bos.toByteArray();
        }
    }
{@inheritDoc}

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