protected function generateRouteByName(string $name, string $default)
    {
        if (is_null($this->extension)) {
            return $default;
        }

        return $this->extension->route($name, $default);
    }