protected function _prepareModulesInformation()
    {
        $aPreparedModules = [];
        $aModules = $this->_getModules();
        foreach ($aModules as $oModule) {
            /** @var \OxidEsales\Eshop\Core\Module\Module $oModule */

            $oPreparedModule = new stdClass();
            $oPreparedModule->id = $oModule->getId();
            $oPreparedModule->version = $oModule->getInfo('version');

            $oPreparedModule->activeInShops = new stdClass();
            $oPreparedModule->activeInShops->activeInShop = [];
            if ($oModule->isActive()) {
                $oPreparedModule->activeInShops->activeInShop[] = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopUrl();
            }
            $aPreparedModules[] = $oPreparedModule;
        }

        return $aPreparedModules;
    }