private function saveLanguage() {
        if ($this->_saveOnCookies) {
            $this->getRequiredModules('cookies')->setCookie($this->_cookieName, $this->_selectedLanguage, 30 * 24);
        }
        if ($this->_saveOnSession) {
            $_SESSION[$this->_sessionKeyName] = $this->_selectedLanguage;
            $_SESSION['default_language'] = $this->_defaultLang;
        }
    }