if (bundle != null && bundle instanceof BundleHost) {
if (bundle != null && bundle.isResolved() && bundle.getSymbolicName()!= null && bundle instanceof BundleHost &&	bundle.checkProvideBundlePermission(bundle.getSymbolicName())) {
	private KeyedHashSet getExportedBundles(KeyedHashSet bundleSet) {		State state = framework.adaptor.getState();		BundleDescription[] bundleDescripts = state.getResolvedBundles();		for (int i = 0; i < bundleDescripts.length; i++) {			BundleDescription bundledes = bundleDescripts[i];			Bundle bundle = framework.getBundle(bundledes.getBundleId());			if (bundle != null && bundle instanceof BundleHost) {				BundleLoaderProxy loaderProxy = ((BundleHost)bundle).getLoaderProxy();				bundleSet.add(loaderProxy);			}		}		return bundleSet;	}