private function expandNodes($references)
    {
        $id = $this->getCurrentCategoryId();

        if ($id) {
            while (isset($references[$id])) {
                $references[$id]->setExpanded(true);
                $id = $references[$id]->getParentId();
            }
        }
    }