Take into account the change in the way to get a session management instance