@Override
    public void serialize(OutputStream os, CompressionType type) throws IOException {
        ByteBuffer buf = Payload.from(payload, compressionInfo).withCompression(type).getData().wrap();
        os.write(buf.array(), buf.arrayOffset()+buf.position(), buf.remaining());
    }
Class for serializing config responses based on {@link com.yahoo.slime.Slime} implementing the {@link ConfigResponse} interface.

@author Ulf Lilleengen
config/src/main/java/com/yahoo/vespa/config/protocol/SlimeConfigResponse.java