protected function readSession()
    {
        // Assume empty cookie / no stored configuration
        try {
            $storedSettings = $this->getSession()->get(self::$identifier);
        } catch (Doozr_Session_Service_Exception $e) {
            $storedSettings = null;
        }

        // Check the result for validity
        if (!$storedSettings || !$this->isValidLocaleCode($storedSettings['locale'])) {
            $storedSettings = null;
        }

        return $storedSettings;
    }