Instead of relying on a setRequest method, you can take the request stack as an argument and call `->getMasterRequest()` whenever you need the request. That way, you always have the right master request. The current way won't work if you handle two master requests in the same PHP process (without rebooting the Kernel of course.)