OZP-682 Created doWithTransaction closures.