private static final Logger LOG = LoggerFactory.getLogger(SerializeUtils.class);
public static Record deserializeTxn(byte txnBytes[], TxnHeader hdr)
throws IOException {
final ByteArrayInputStream bais = new ByteArrayInputStream(txnBytes);
InputArchive ia = BinaryInputArchive.getArchive(bais);
hdr.deserialize(ia, "hdr");
bais.mark(bais.available());
Record txn = null;
switch (hdr.getType()) {