class TransactionRepresentationCommitProcess implements TransactionCommitProcess {

    @Override
    public long commit( TransactionToApply batch, CommitEvent commitEvent,
            TransactionApplicationMode mode ) throws TransactionFailureException
    {
        long lastTxId = appendToLog( batch, commitEvent );
        try
        {
            applyToStore( batch, commitEvent, mode );
            return lastTxId;
        }
        finally
        {
            close( batch );
        }
    }

    public  TransactionRepresentationCommitProcess( TransactionAppender appender, StorageEngine storageEngine );

}