please avoid usage of sessionScopeNode as global variable. find a way to return it from function