public static function getPath(InstallationManager $installationManager, AssetManagerInterface $assetManager, PackageInterface $package, array $configPackages = array())
    {
        $path = null;

        if (static::isAsset($package, $configPackages)) {
            $installPath = $installationManager->getInstallPath($package);
            $filename = $installPath.'/'.$assetManager->getPackageName();
            $path = file_exists($filename) ? str_replace('\\', '/', realpath($filename)) : null;
        }

        return $path;
    }