Correctly generate access to SessionContext