protected function _getKoowaManifest(PackageInterface $package)
    {
        $path      = $this->getInstallPath($package);
        $directory = new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::KEY_AS_PATHNAME);
        $iterator  = new \RecursiveIteratorIterator($directory);
        $regex     = new \RegexIterator($iterator, '/koowa-component\.xml/', \RegexIterator::GET_MATCH);
        $files     = iterator_to_array($regex);

        if (empty($files)) {
            return false;
        }

        $manifests = array_keys($files);
        $manifest  = simplexml_load_file($manifests[0]);

        if (!($manifest instanceof \SimpleXMLElement))
        {
            throw new \InvalidArgumentException(
                'Failed to load `koowa-component.xml` manifest for package `'.$package->getPrettyName().'`.'
            );
        }

        return $manifest;
    }