if (registryServiceTracker != null) { registryServiceTracker.close(); registryServiceTracker = null; } if (preferencesService != null) { preferencesService.unregister(); preferencesService = null; } if (osgiPreferencesService != null) { osgiPreferencesService.unregister(); osgiPreferencesService = null; }
	public void stop(BundleContext context) throws Exception {		registryServiceTracker.close(); //unregisters services		registryServiceTracker = null;		PreferencesOSGiUtils.getDefault().closeServices();		bundleContext = null;	}