refactoring for retrieve HttpServletRequest using Spring