State state = framework.adaptor.getState();  state.resolve(false);
copy = new Bundle[size];
	protected void refreshPackages(Bundle[] refresh) {		try {			Vector graph = null;			synchronized (framework.bundles) {				if (Debug.DEBUG && Debug.DEBUG_PACKAGEADMIN) {					Debug.println("refreshPackages: Initialize graph");				}				// make sure the dependencies are marked first				framework.bundles.markDependancies();				graph = computeAffectedBundles(refresh);				// get the state.				State state = framework.adaptor.getState();				// resolve the state.				state.resolve(false);				// process the delta.  This will set the state of all				// the bundles in the graph.				processDelta(graph);			}			/*			 * Resume the suspended bundles outside of the synchronization block.			 * This will cause the bundles to be resolved using the most up-to-date			 * generations of the bundles.			 */			resumeBundles(graph);		} finally {			framework.publishFrameworkEvent(FrameworkEvent.PACKAGES_REFRESHED, framework.systemBundle, null);		}	}