Bug 264065 Add OSGi service context as root of workbench context chain
The parent of the root workbench context should be an OSGi service context. This will allow all contexts to access OSGi services through their context "for free".
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/WorkbenchApplication.java
} else if (product != null) {
			String path = product.getProperty("applicationXMI"); 
			if (path != null) {
				appURI = path;
			}
		}
		final String cssURI = product == null? null:product.getProperty("applicationCSS"); 
		Assert.isNotNull(appURI, "-applicationXMI argument missing"); 
		final URI initialWorkbenchDefinitionInstance = URI
				.createPlatformPluginURI(appURI, true);
		Realm.runWithDefault(SWTObservables.getRealm(display), new Runnable() {
			public void run() {
				try {
					IEclipseContext appContext = EclipseContextFactory.create("application"); 
					if (cssURI != null) {
						WorkbenchStylingSupport.initializeStyling(display, cssURI, appContext);
					}
					IWorkbench wb = workbenchFactory
							.create(initialWorkbenchDefinitionInstance, appContext);
					wb.run();
				} catch (ThreadDeath th) {
					throw th;
				} catch (Exception ex) {
					ex.printStackTrace();
				} catch (Error err) {
					err.printStackTrace();
				}
			}
		});
		return IApplication.EXIT_OK;