I understand the issue, but getting the session via a static call instead of injecting it makes unit testing harder (and this is a class which should have a test (my bad)). Or do you think it is a temporary fix anyway?