Converted transaction manager to use a method taking a block instead of prepareForWhen and performWhen.