protected function getCurrentPath() { $path = implode('/', $this->nodeNameStack); return $path === '' ? '/' : $path; }