TransactionTemplate to handle transaction in controller