if (OSGIUtils.getDefault().isFragment(contributingBundle)) return OSGIUtils.getDefault().getHosts(contributingBundle)[0];
if (OSGIUtils.getDefault().isFragment(contributingBundle)) { Bundle[] hosts = OSGIUtils.getDefault().getHosts(contributingBundle); if (hosts != null) return hosts[0]; }
	static private Bundle getNamespaceBundle(long contributingBundleId) {		Bundle contributingBundle = getContributingBundle(contributingBundleId);		if (contributingBundle == null) // When restored from disk the underlying bundle may have been uninstalled			throw new IllegalStateException("Internal error in extension registry. The bundle corresponding to this contribution has been uninstalled."); //$NON-NLS-1$		if (OSGIUtils.getDefault().isFragment(contributingBundle))			return OSGIUtils.getDefault().getHosts(contributingBundle)[0];		return contributingBundle;	}