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 (hosts != null) {				if (state == RESOLVED) {					exporting = true; // if we have a host we cannot be removed until the host is refreshed					hosts = null;					state = INSTALLED;				}			}		} else {			/* close the outgoing jarfile */			try {				this.bundledata.close();			} catch (IOException e) {				// Do Nothing			}		}		if (!exporting) {			/* 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);	}