private void CheckInstallBundle(Bundle bundle) { IBundle existsBundle = bundleRepository.GetBundle(bundle.SymbolicName, null); if (existsBundle != null) { throw new BundleException("Bundle is already installed."); } }