Bug 263090 [legacy] Load the model with commands and handlers
The legacy fragment should be able to load the commands model with commands and the handlers model with handlers. PW
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
new XMIResourceFactoryImpl());
		
		
		resourceSet.getPackageRegistry().put(WorkbenchPackage.eNS_URI,
				WorkbenchPackage.eINSTANCE);
		globalContext = createContext(applicationContext, registry,
				exceptionHandler);
		globalContext.set(IWorkbench.class.getName(), this);
		if (workbenchData != null && workbenchData.exists() && saveAndRestore) {
			createWorkbenchModel(URI.createFileURI(workbenchData
					.getAbsolutePath()), workbenchXmiURI);
		} else {
			createWorkbenchModel(null, workbenchXmiURI);
		}
	}
	public static IEclipseContext createContext(
			final IEclipseContext applicationContext,
			IExtensionRegistry registry, IExceptionHandler exceptionHandler) {
		final IEclipseContext mainContext = EclipseContextFactory.create(
				applicationContext, UISchedulerStrategy.getInstance());
		mainContext.set(Logger.class.getName(), ContextInjectionFactory.inject(
				new WorkbenchLogger(), mainContext));
		mainContext.set(IContextConstants.DEBUG_STRING, "globalContext"); 
		IConfigurationElement[] contributions = registry
				.getConfigurationElementsFor("org.eclipse.e4.services"); 
		for (IConfigurationElement contribution : contributions) {
			try {
				for (IConfigurationElement serviceElement : contribution
						.getChildren("service")) { 
					Object factory = contribution