Stack activationStack = (Stack) activationStacks.get(Thread.currentThread());
	private void traceActivate(String id, BundleStats plugin) {		try {			PrintWriter output = new PrintWriter(new FileOutputStream(ClassloaderStats.traceFile.getAbsolutePath(), true));			try {				long startPosition = ClassloaderStats.traceFile.length();				output.println("Activating plugin: " + id); //$NON-NLS-1$				output.println("Plugin activation stack:"); //$NON-NLS-1$				for (int i = activationStack.size() - 1; i >= 0; i--)					output.println("\t" + ((BundleStats) activationStack.get(i)).getPluginId()); //$NON-NLS-1$				output.println("Class loading stack:"); //$NON-NLS-1$				Stack classStack = ClassloaderStats.getClassStack();				for (int i = classStack.size() - 1; i >= 0; i--)					output.println("\t" + ((ClassStats) classStack.get(i)).getClassName()); //$NON-NLS-1$				output.println("Stack trace:"); //$NON-NLS-1$				new Throwable().printStackTrace(output);				plugin.setTraceStart(startPosition);			} finally {				output.close();				plugin.setTraceEnd(ClassloaderStats.traceFile.length());			}		} catch (IOException e) {			e.printStackTrace();		}	}