@Override protected boolean doEncode(DocumentReply obj, DocumentSerializer buf) { RemoveDocumentReply reply = (RemoveDocumentReply)obj; buf.putByte(null, (byte)(reply.wasFound() ? 1 : 0)); buf.putLong(null, reply.getHighestModificationTimestamp()); return true; } }