registerServices();
Object service = bundleContext.getService(reference);   if (service != null) { try { Object helper = new PreferenceServiceRegistryHelper(PreferencesService.getDefault(), service); PreferencesService.getDefault().setRegistryHelper(helper); } catch (Exception e) { RuntimeLog.log(new Status(IStatus.ERROR, PI_PREFERENCES, 0, PrefsMessages.noRegistry, e)); } catch (NoClassDefFoundError error) {       return null; } }
	public synchronized Object addingService(ServiceReference reference) {		registerServices();		//return the registry service so we track it		return bundleContext.getService(reference);	}