public function getList(){
        if ($this->list !== null){
            return $this->list;
        }
        $list = [];
        $packages = $this->getOxidModulePackages();
        //$moduleList = Registry::get(ModuleList::class);
        //$pathList = $moduleList->getModuleConfigParametersByKey(ModuleList::MODULE_KEY_PATHS);
        //$path2Id = array_flip($pathList);
        $config = Registry::getConfig();
        $paths = $config->getConfigParam('aModulePaths');
        $path2id = array_flip($paths);
        foreach ($packages as $package) {
            $extra = $package->getExtra();
            $oxideshop = isset($extra['oxideshop']) ? $extra['oxideshop'] : [];
            if (isset($oxideshop['target-directory'])) {
                $id = $path2id[$oxideshop['target-directory']];
                $list[$id] = $package;
            }
        }
        $this->list = $list;
        return $list;
    }