Refactoring EditServlet