Bug 296356 We shouldn't create more than one e4 OSGi context per BundleContext
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/HeadlessStartupTest.java
"Application Context"); 
		super.setUp();
	}
	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
		if (applicationContext instanceof IDisposable) {
			((IDisposable) applicationContext).dispose();
		}
		
		
		
	}
	private IEclipseContext createOSGiContext() {
		osgiContext = EclipseContextFactory.createServiceContext(Activator
				.getDefault().getBundle().getBundleContext());
		return osgiContext;
	}
	private IEclipseContext createApplicationContext() {
		return createApplicationContext(createOSGiContext());
	}
	protected ISchedulerStrategy getApplicationSchedulerStrategy() {
		return null;
	}
	protected IEclipseContext createApplicationContext(
			IEclipseContext osgiContext) {
		assertNotNull(osgiContext);
		final IEclipseContext appContext = createContext(osgiContext,
				getApplicationSchedulerStrategy());
		appContext.set(IEclipseContext.class.getName(), appContext);