public function activate()
    {
        $sError = $this->checkForActivationErrors();
        if ($sError) {
            /** @var \OxidEsales\Eshop\Core\Exception\StandardException $oException */
            $oException = oxNew(\OxidEsales\Eshop\Core\Exception\StandardException::class, $sError);
            throw $oException;
        }
        $sParent = $this->getInfo('parentTheme');
        if ($sParent) {
            \OxidEsales\Eshop\Core\Registry::getConfig()->saveShopConfVar("str", 'sTheme', $sParent);
            \OxidEsales\Eshop\Core\Registry::getConfig()->saveShopConfVar("str", 'sCustomTheme', $this->getId());
        } else {
            \OxidEsales\Eshop\Core\Registry::getConfig()->saveShopConfVar("str", 'sTheme', $this->getId());
            \OxidEsales\Eshop\Core\Registry::getConfig()->saveShopConfVar("str", 'sCustomTheme', '');
        }
        $settingsHandler = oxNew(\OxidEsales\Eshop\Core\SettingsHandler::class);
        $settingsHandler->setModuleType('theme')->run($this);
    }