HttpServletRequestWrapper
To use, simply add the SecurityContextHolderAwareRequestFilter to web.xml.
SecurityContextHolderAwareRequestFilter
web.xml