Refatorando classe TransactionFilter.