Bug 262962 Quick fix to get selection service working in the photo demo
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
				.put(Resource.Factory.Registry.DEFAULT_EXTENSION,
						new XMIResourceFactoryImpl());
		
		
		resourceSet.getPackageRegistry().put(WorkbenchPackage.eNS_URI,
				WorkbenchPackage.eINSTANCE);
		processLanguages();
		globalContext = createContext();
		if (workbenchData != null && workbenchData.exists() && saveAndRestore) {
			createWorkbenchModel(workbenchData.getAbsolutePath(),
					workbenchXmiURI);
		} else {
			createWorkbenchModel(null, workbenchXmiURI);
		}
	}
	private IEclipseContext createContext() {
		
		modelService = new ModelService(Platform.getAdapterManager());
		resourceUtility = new ResourceUtility(packageAdmin);
		final IEclipseContext mainContext = EclipseContextFactory.create("globalContext", UIContextScheduler.instance);
		IConfigurationElement[] contributions = registry
				.getConfigurationElementsFor("org.eclipse.e4.services");
		for (IConfigurationElement contribution : contributions) {
			IContributor contributor = contribution.getContributor();
			Bundle bundle = getBundleForName(contributor.getName());
			try {
				for (IConfigurationElement serviceElement : contribution