I guess that when I worked on
OFBIZ-9164 I broke that.
I found 3 occurences where the dispatcher was not in the session because the session comes from the request and the request has not it in.
That confirms again that you can't rely only on IDE refactoring tools when refactoring Java code in OFBiz. Which is obvious but have to remember...