Transaction log is decoding/encoding transaction messages using Codec. I simply replaced the MessageJavaSerializeCodec previously used by the transaction logging by this class. This class is in the consistency.persistence package since I wasn't sure it was useful outside transaction logging persistence.