refactoring NewTransactionServlet class