public function dump($basepath, $language = null)
    {
        $sitemapData = $this
            ->sitemapBuilder
            ->build($basepath, $language);

        $path = $this->resolvePathWithLanguage(
            $this->path,
            $language
        );

        $this
            ->sitemapDumper
            ->dump($path, $sitemapData);
    }