AGP-342: add context to check existance of a session variable