public function maintenanceAction()
    {
        // Switch lock
        if ($this->util->getMonitor()->reverseMaintenanceMonitor()) {
            $this->accesslog->logChange($this->getRequest(), $this->_('Maintenance mode set ON'));
        } else {
            $this->accesslog->logChange($this->getRequest(), $this->_('Maintenance mode set OFF'));

            // Dump the existing maintenance mode messages.
            $this->escort->getMessenger()->clearCurrentMessages();
            $this->escort->getMessenger()->clearMessages();
            \MUtil_Echo::out();
        }

        // Redirect
        $request = $this->getRequest();
        $this->_reroute(array($request->getActionKey() => 'index'));
    }