/**
  * Unregisters a package from the list of available packages
  *
  * @param string $packageKey Package Key of the package to be unregistered
  * @return void
  */
 protected function unregisterPackageByPackageKey($packageKey)
 {
     try {
         $package = $this->getPackage($packageKey);
         if ($package instanceof PackageInterface) {
             foreach ($package->getPackageReplacementKeys() as $packageToReplace => $versionConstraint) {
                 unset($this->packageAliasMap[strtolower($packageToReplace)]);
             }
             $packageKey = $package->getPackageKey();
         }
     } catch (\TYPO3\Flow\Package\Exception\UnknownPackageException $e) {
     }
     parent::unregisterPackageByPackageKey($packageKey);
 }