throw new RuntimeException(Msg.formatter.getString("ADAPTOR_STORAGE_EXCEPTION"));
throw new RuntimeException(e);
	protected void initialize(FrameworkAdaptor adaptor) {		long start = System.currentTimeMillis();		this.adaptor = adaptor;		active = false;		installSecurityManager();		if (Debug.DEBUG && Debug.DEBUG_SECURITY) {			Debug.println("SecurityManager: " + System.getSecurityManager());			Debug.println("ProtectionDomain of Framework.class: \n" + this.getClass().getProtectionDomain());		}		/* initialize the adaptor */		adaptor.initialize(this);		try {			adaptor.initializeStorage();			adaptor.compactStorage();		} catch (IOException e) /* fatal error */{			e.printStackTrace();			throw new RuntimeException(Msg.formatter.getString("ADAPTOR_STORAGE_EXCEPTION"));		}		/*		 * This must be done before calling any of the framework getProperty		 * methods.		 */		initializeProperties(adaptor.getProperties());		/* initialize admin objects */		packageAdmin = new PackageAdmin(this);		SecurityManager sm = System.getSecurityManager();		if (sm != null) {			try {				permissionAdmin = new PermissionAdmin(this, adaptor.getPermissionStorage());			} catch (IOException e) /* fatal error */{				e.printStackTrace();				throw new RuntimeException(Msg.formatter.getString("ADAPTOR_STORAGE_EXCEPTION"));			}		}		startLevelFactory = new StartLevelFactory(this);		startLevelImpl = new StartLevelImpl(this);		/* create the event manager and top level event dispatchers */		eventManager = new EventManager("Framework Event Dispatcher");		bundleEvent = new EventListeners();		bundleEventSync = new EventListeners();		serviceEvent = new EventListeners();		frameworkEvent = new EventListeners();		/* create the service registry */		serviceid = 1;		serviceRegistry = adaptor.getServiceRegistry();		installLock = new Hashtable(13);		/* create the system bundle */		createSystemBundle();		/* install URLStreamHandlerFactory */		URL.setURLStreamHandlerFactory(new StreamHandlerFactory(systemBundle.context, adaptor));		/* install ContentHandlerFactory for OSGi URLStreamHandler support */		URLConnection.setContentHandlerFactory(new ContentHandlerFactory(systemBundle.context));		/* create bundle objects for all installed bundles. */		Vector bundleDatas = adaptor.getInstalledBundles();		bundles = new BundleRepository(bundleDatas == null ? adaptor.getVectorInitialCapacity() : bundleDatas.size() + 1, packageAdmin);		/* add the system bundle to the Bundle Repository */		bundles.add(systemBundle);		if (bundleDatas != null) {			int size = bundleDatas.size();			for (int i = 0; i < size; i++) {				BundleData bundledata = (BundleData) bundleDatas.elementAt(i);				try {					int absl = bundledata.getStartLevel();					Bundle bundle = Bundle.createBundle(bundledata, bundledata.getLocation(), this, absl);					bundles.add(bundle);				} catch (BundleException be) {					// This is not a fatal error. Publish the framework event,					// but					// since no log service is probably running we will also					// print a					// stack trace.					publishFrameworkEvent(FrameworkEvent.ERROR, systemBundle, be);					//be.printStackTrace();				}			}		}		// initialize package admin; this must be done after the system bundle		// has been added to the state.		packageAdmin.initialize();		systemBundle.getBundleLoader(); // initialize the bundle loader in case		// someone accesses it directly		if (Debug.DEBUG && Debug.DEBUG_GENERAL)			System.out.println("Initialize the framework: " + (System.currentTimeMillis() - start));	}