Stack activationStack = (Stack) activationStacks.get(Thread.currentThread()); if (activationStack==null) { activationStack = new Stack(); activationStacks.put(Thread.currentThread(), activationStack); }
	public void startActivation(Bundle bundle) {		// should be called from a synchronized location to protect against concurrent updates		BundleStats plugin = findPlugin(bundle.getSymbolicName());		plugin.setTimestamp(System.currentTimeMillis());		plugin.setActivationOrder(plugins.size());		plugin.setDuringStartup(booting);		// set the parentage of activation		if (activationStack.size() != 0) {			BundleStats activatedBy = (BundleStats) activationStack.peek();			activatedBy.activated(plugin);			plugin.setActivatedBy(activatedBy);		}		activationStack.push(plugin);		if (TRACE_BUNDLES == true) {			traceActivate(bundle.getSymbolicName(), plugin);		}	}