RegistryUtils.setRegistryProvider(defaultProvider);
RegistryFactory.setDefaultRegistryProvider(defaultProvider);
	public void startRegistry() throws CoreException {		// see if the customer suppressed the creation of default registry		String property = bundleContext.getProperty(IRegistryConstants.PROP_DEFAULT_REGISTRY);		if (property != null && property.equalsIgnoreCase("false")) //$NON-NLS-1$			return;		// check to see if we need to use null as a userToken		if ("true".equals(bundleContext.getProperty(IRegistryConstants.PROP_REGISTRY_NULL_USER_TOKEN))) //$NON-NLS-1$			userRegistryKey = null;		Location configuration = OSGIUtils.getDefault().getConfigurationLocation();		File theStorageDir = new File(configuration.getURL().getPath() + '/' + STORAGE_DIR);		EquinoxRegistryStrategy registryStrategy = new EquinoxRegistryStrategy(theStorageDir, configuration.isReadOnly(), masterRegistryKey);		defaultRegistry = RegistryFactory.createRegistry(registryStrategy, masterRegistryKey, userRegistryKey);		registryRegistration = Activator.getContext().registerService(IExtensionRegistry.class.getName(), defaultRegistry, new Hashtable());		defaultProvider = new RegistryProviderOSGI();		// Set the registry provider and specify this as a default registry:		RegistryUtils.setRegistryProvider(defaultProvider);	}