Added transaction around Revision and Audited entity flush