storageManagerClosed = false;
	public void initialize(BaseAdaptor adaptor) throws IOException {		this.adaptor = adaptor;		setDebugOptions();		if (Boolean.valueOf(FrameworkProperties.getProperty(BaseStorage.PROP_CLEAN)).booleanValue())			cleanOSGiCache();		// initialize the addURLMethod to support framework extensions		ClassLoader fwloader = BaseStorage.class.getClassLoader();		if (fwloader != null)			addURLMethod = findaddURLMethod(fwloader.getClass());		// we need to set the install path as soon as possible so we can determine		// the absolute location of install relative URLs		Location installLoc = LocationManager.getInstallLocation();		if (installLoc != null) {			URL installURL = installLoc.getURL();			// assume install URL is file: based			installPath = installURL.getPath();		}		boolean readOnlyConfiguration = LocationManager.getConfigurationLocation().isReadOnly();		storageManager = initFileManager(LocationManager.getOSGiConfigurationDir(), readOnlyConfiguration ? "none" : null, readOnlyConfiguration); //$NON-NLS-1$		// initialize the storageHooks		StorageHook[] hooks = adaptor.getHookRegistry().getStorageHooks();		for (int i = 0; i < hooks.length; i++)			storageHooks.add(hooks[i]);	}