Bug 317073 Make Logging stuff available on a per class configuration
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/HeadlessStartupTest.java
applicationContext = createApplicationContext();
		super.setUp();
	}
	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
		applicationContext.dispose();
		
		
		
	}
	private IEclipseContext createOSGiContext() {
		osgiContext = EclipseContextFactory
				.getServiceContext(WorkbenchSWTActivator.getDefault()
						.getBundle().getBundleContext());
		return osgiContext;
	}
	private IEclipseContext createApplicationContext() {
		return createApplicationContext(createOSGiContext());
	}
	protected IEclipseContext createApplicationContext(
			IEclipseContext osgiContext) {
		assertNotNull(osgiContext);
		final IEclipseContext appContext = osgiContext
				.createChild("Application Context");
		appContext.set(IEclipseContext.class.getName(), appContext);
		appContext.set(IContributionFactory.class.getName(),
				new ReflectionContributionFactory(
						(IExtensionRegistry) appContext
								.get(IExtensionRegistry.class.getName())));