@Override
protected SerializableDocument doDecode(String id, ByteBuf content, long cas, int expiry, int flags,
ResponseStatus status) throws Exception {
if (!TranscoderUtils.hasSerializableFlags(flags)) {
throw new TranscodingException("Flags (0x" + Integer.toHexString(flags) + ") indicate non-serialized " +
"document for id " + id + ", could not decode.");
}
Serializable deserialized = TranscoderUtils.deserialize(content);
return newDocument(id, expiry, deserialized, cas);