implementing support for the depthHint in Session::getNode