changes made to the factory session and added transaction manager bean