FileManager newFileManager = initFileManager(bundledataLocationDir, parentConfiguration.isReadOnly() ? "none" : null); File bundleData = newFileManager.lookup(LocationManager.BUNDLE_DATA_FILE, true);
FileManager newFileManager = initFileManager(bundledataLocationDir, "none", true); File bundleData = newFileManager.lookup(LocationManager.BUNDLE_DATA_FILE, false);
	private InputStream findBundleDataFile() {		if (reinitialize)			return null; // return null to indicate we are reinitializing		File metadata = null;		try {			metadata = fileManager.lookup(LocationManager.BUNDLE_DATA_FILE, false);		} catch (IOException ex) {			if (Debug.DEBUG && Debug.DEBUG_GENERAL) {				Debug.println("Error reading framework metadata: " + ex.getMessage()); //$NON-NLS-1$				Debug.printStackTrace(ex);			}		}		InputStream bundleDataStream = null;		if (metadata != null && metadata.isFile()) {			try {				bundleDataStream = new FileInputStream(metadata);			} catch (FileNotFoundException e1) {				// this can not happen since it is tested before entering here.			}		} else {			Location currentConfiguration = LocationManager.getConfigurationLocation();			Location parentConfiguration = null;			if (currentConfiguration != null && (parentConfiguration = currentConfiguration.getParentLocation()) != null) {				try {					File bundledataLocationDir = new File(parentConfiguration.getURL().getFile(), FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME);					FileManager newFileManager = initFileManager(bundledataLocationDir, parentConfiguration.isReadOnly() ? "none" : null); //$NON-NLS-1$					File bundleData = newFileManager.lookup(LocationManager.BUNDLE_DATA_FILE, true);					bundleDataStream = new FileInputStream(bundleData);				} catch (MalformedURLException e1) {					// This will not happen since all the URLs are derived by us					// and we are GODS!				} catch (IOException e1) {					// That's ok we will regenerate the .bundleData				}			}		}		return bundleDataStream;	}