public function getFQCN(PackageInterface $package, $bundleFileName)
    {
        $bundleName = substr(basename($bundleFileName), 0, -4);
        $autoload = $package->getAutoload();

        if (isset($autoload['psr-0'])) {
            $namespace = key($autoload['psr-0']);

            return rtrim($namespace, '\\') . '\\' . $bundleName;
        }

        if (isset($autoload['psr-4'])) {
            $namespace = key($autoload['psr-4']);

            return $namespace . $bundleName;
        }

        return $bundleName;
    }