Servlets refactor andHelpers