refactored TransactionalCommandProcessor. Now it's time to make a unit test for it ;)