Bug 263544 [context] Add dependency injection context -> user object
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
return globalContext;
	}
	private ILegacyHook legacyHook;
	
	private PartRenderer renderer;
	private int rv;
	private Map<String, Object> languages;
	private ExceptionHandler exceptionHandler;
	private IEclipseContext globalContext;
	public Workbench(Location instanceLocation, IExtensionRegistry registry,
			PackageAdmin packageAdmin, URI workbenchXmiURI) {
		exceptionHandler = new ExceptionHandler();
		this.registry = registry;
		this.packageAdmin = packageAdmin;
		workbenchData = null;
		try {
			workbenchData = new File(
					new File(instanceLocation.getURL().toURI()),
					".metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi"); 
		} catch (URISyntaxException e1) {
			
			e1.printStackTrace();
		}
		resourceSet = new ResourceSetImpl();
		
		
		
		resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
				.put(Resource.Factory.Registry.DEFAULT_EXTENSION,
						new XMIResourceFactoryImpl());