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
.getChildren("service")) {
					IComputedValue factory = (IComputedValue) contribution
							.createExecutableExtension("class");
					String apiClassname = serviceElement.getAttribute("api");
					mainContext.set(apiClassname, factory);
				}
			} catch (CoreException e) {
				
				e.printStackTrace();
			}
		}
		mainContext.set(IWorkbench.class.getName(), this);
		mainContext.set(IExceptionHandler.class.getName(), exceptionHandler);
		mainContext.set(ResourceUtility.class.getName(), resourceUtility);
		return mainContext;
	}
	private Application<WorkbenchWindow> createWorkbenchModel(String restoreFile,
			URI workbenchDefinitionInstance) {
		boolean restore = false;
		URI uri = null;
		Resource resource = null;
		if (!restore) {
			resource = new XMIResourceImpl();
			workbench = ApplicationFactory.eINSTANCE.createApplication();
			resource.getContents().add((EObject) workbench);
			
			String initialPerspectiveId = "org.eclipse.e4.ui.workbench.fragment.testPerspective";
			populateWBModel(workbench, workbenchDefinitionInstance,
					initialPerspectiveId);
		} else {