Implementing HttpServletContext changes and deprecating old API