if you just put this around the $this->session->getNodeByIdentifier call, it should be enough. can you try that? i think that would make it more obvious where things are coming from.