return bundle.getBundleData().createClassLoader(BundleLoader.this, pd, cp); return (BundleClassLoader) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return bundle.getBundleData().createClassLoader(BundleLoader.this, pd, cp);
bcl = bundle.getBundleData().createClassLoader(BundleLoader.this, pd, cp); else bcl = (BundleClassLoader)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return bundle.getBundleData().createClassLoader(BundleLoader.this, pd, cp); } });   org.osgi.framework.Bundle[] fragments = bundle.getFragments(); if (fragments != null) for (int i = 0; i < fragments.length; i++) { Bundle fragment = (Bundle) fragments[i]; try { bcl.attachFragment(fragment.getBundleData(), fragment.domain, getClassPath(fragment, System.getProperties())); } catch (BundleException be) { bundle.framework.publishFrameworkEvent(FrameworkEvent.ERROR, bundle, be); }
	private BundleClassLoader createBCLPrevileged(final ProtectionDomain pd, final String[] cp) {		if (System.getSecurityManager() == null)			return bundle.getBundleData().createClassLoader(BundleLoader.this, pd, cp);		return (BundleClassLoader) AccessController.doPrivileged(new PrivilegedAction() {			public Object run() {				return bundle.getBundleData().createClassLoader(BundleLoader.this, pd, cp);			}		});	}