public function activateMenuEntry($key = '')
    {
        if ($key != '') {
            $menuEntry = $this->menuManager->getMenuEntryForKey($key);
            
            if ($menuEntry !== false) {
                $this->menuManager->setActiveMenuEntry($menuEntry);
            }
        } else {
            $this->menuManager->activateCorrectMenuEntry();
        }
        
        return $this->menuManager->getActiveMenuEntry();
    }