I'm porting a code base from php. PHP which provides global variable to reference $_SESSION functionally not entirely unlike a static reference to the HttpSession of the current request.
I can't help thinking a mapping from the
servlet thread to the session populated by a filter. Assuming the thread that runs the filter is the thread the runs the servlet it might work.