public static function create($name, array $properties = [], $serialize = true) {

        try {

            $class = get_called_class();

            $cookie = new $class($name);

            CookieTools::setCookieProperties($cookie, $properties, $serialize);

        } catch (CookieException $ce) {

            throw $ce;

        }

        return $cookie;

    }