Added creation of a TransactionManager in Middleware.