autoActivate = false;
tryActivating = false;
	public Class findLocalClass(String name) throws ClassNotFoundException {		// See if we need to do autoactivation. We don't if autoActivation is turned off		// or if we have already activated this bundle.		if (EclipseAdaptor.MONITOR_CLASSES)			ClassloaderStats.startLoadingClass(getClassloaderId(), name);		boolean found = true;		try {			if (autoActivate) {				int state = hostdata.getBundle().getState();				// Assume that if we get to this point the bundle is installed, resolved, ... so				// we just need to check that it is not already started or being started. There is a				// small window where two thread race to start. One will make it first, the other will				// throw an exception. Below we catch the exception and ignore it if it is				// of this nature.				// Ensure that we do the activation outside of any synchronized blocks to avoid deadlock.				if (state != Bundle.STARTING && state != Bundle.ACTIVE)					try {						hostdata.getBundle().start();					} catch (BundleException e) {						// TODO do nothing for now but we need to filter the type of exception here and						// sort the bad from the ok. Basically, failing to start the bundle should not be damning.						// Automagic activation is currently a best effort deal.						//TODO: log when a log service is available						e.printStackTrace(); //Note add this to help debugging						if (e.getNestedException() != null)							e.getNestedException().printStackTrace();					}				// once we have tried, there is no need to try again.				// TODO revisit this when considering what happens when a bundle is stopped				// and then subsequently accessed. That is, should it be restarted?				autoActivate = false;			}			return super.findLocalClass(name);		} catch (ClassNotFoundException e) {			found = false;			throw e;		} finally {			if (EclipseAdaptor.MONITOR_CLASSES)				ClassloaderStats.endLoadingClass(getClassloaderId(), name, found);		}	}