static Bundle getBundle(String symbolicName) { if (pa == null)
static Bundle getBundle(IContributor contributor) { if (contributor instanceof RegistryContributor) { try { long id = Long.parseLong(((RegistryContributor) contributor).getActualId()); if (context != null) return context.getBundle(id); } catch (NumberFormatException e) {  } } if (packageAdmin == null)
	static Bundle getBundle(String symbolicName) {		if (pa == null)			return null;		Bundle[] bundles = pa.getBundles(symbolicName, null);		if (bundles == null)			return null;		//Return the first bundle that is not installed or uninstalled		for (int i = 0; i < bundles.length; i++)			if ((bundles[i].getState() & (Bundle.INSTALLED | Bundle.UNINSTALLED)) == 0)				return bundles[i];		return null;	}