refactoring for use HttpServletRequest as argument on every controller action and capturing parameters from request