public static function getSettings()
    {
        try {
            return self::getCurrent()->settings;
        } catch (Exception $exception) {
            // No application running.
            throw new SettingsException(
                $exception->getMessage(),
                $exception->getCode(),
                $exception
            );
        }
    }