protected function savePages(Theme $theme, array $options)
    {
        $pages = $this->pageTreeCollection->getPages();
        $basePages = $this->pageTreeCollection->getBasePages();

        $options["type"] = "Pages";
        if ( ! $this->doSavePages($pages, $theme, $options)) {
            return false;
        }

        $options["type"] = "Base";
        if ( ! $this->doSavePages($basePages, $theme, $options)) {
            return false;
        }

        return true;
    }