if (framework.isActive() && System.getSecurityManager() != null)
if (framework.isActive() && System.getSecurityManager() != null && framework.permissionAdmin != null)
	protected boolean reload(AbstractBundle newBundle) {		if (Debug.DEBUG && Debug.DEBUG_GENERAL) {			if ((state & (INSTALLED | RESOLVED)) == 0) {				Debug.println("Bundle.reload called when state != INSTALLED | RESOLVED: " + this); //$NON-NLS-1$				Debug.printStackTrace(new Exception("Stack trace")); //$NON-NLS-1$			}		}		boolean exporting = false;		if (framework.isActive()) {			if (state == RESOLVED) {				BundleLoaderProxy curProxy = getLoaderProxy();				exporting = curProxy.inUse();				if (exporting)					// make sure the BundleLoader is created.					curProxy.getBundleLoader().createClassLoader();				else					closeBundleLoader(proxy);				state = INSTALLED;				proxy = null;				fragments = null;			}		} else {			/* close the outgoing jarfile */			try {				this.bundledata.close();			} catch (IOException e) {				// Do Nothing			}		}		this.bundledata = newBundle.bundledata;		this.bundledata.setBundle(this);		// create a new domain for the bundle because its signers/symbolic-name may have changed		if (framework.isActive() && System.getSecurityManager() != null)			domain = framework.permissionAdmin.createProtectionDomain(this);		return (exporting);	}