Add method getCommitTxRecord. Refactor code in validateCommitAndEnqueue()