protected function _processMenuSetCurrent(&$ret)
    {
        $currentPages = array_reverse($this->_getCurrentPages());

        $currentPageIds = array();
        foreach ($currentPages as $page) {
            if (!$page instanceof Kwf_Component_Data_Root) {
                $currentPageIds[] = $page->componentId;
                $selected = $page->componentId; //the last one is selected
            }
        }
        foreach ($ret as $k=>$i) {
            if (in_array($i['data']->componentId, $currentPageIds)) {
                $ret[$k]['current'] = true;
                $ret[$k]['class'] .= ' '.self::getBemClass($this->_getSetting('menuComponentClass'), 'item--current', 'current');
                if ($selected == $i['data']->componentId) {
                    $ret[$k]['selected'] = true;
                    $ret[$k]['class'] .= ' '.self::getBemClass($this->_getSetting('menuComponentClass'), 'item--selected', 'selected');
                }
            }
        }
    }