public static function get($key = '', $preserve = false)
    {
        $value = null;
        if (isset($_SESSION['flashmessage'][$key])) {
            $value = $_SESSION['flashmessage'][$key];
            if (!$preserve) {
                unset($_SESSION['flashmessage'][$key]);
            }
        }
        return $value;
    }