Bug 261852 [context] Separate code into API / SPI / internal
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
uri = URI.createFileURI(restoreFile);
			try {
				resource = new ResourceSetImpl().getResource(uri, true);
				workbench = (Application<WorkbenchWindow>) resource.getContents().get(0);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		if (!restore) {
			resource.setURI(URI.createFileURI(workbenchData.getAbsolutePath()));
		}
		init(workbench);
		return workbench;
	}
	private void populateWBModel(Application<WorkbenchWindow> wb,
			URI initialWorkbenchDefinitionInstance, String initialPerspectiveId) {
		
		installLegacyHook();
		WorkbenchWindow wbw;
		if (legacyHook != null) {
			wbw = WorkbenchFactory.eINSTANCE.createWorkbenchWindow();
			wbw.setWidth(1280);
			wbw.setHeight(1024);
			wbw.setX(100);
			wbw.setY(100);
			wbw.setName("E4 Workbench Window [Java, Debug]");
			wbw.setTrim(ApplicationFactory.eINSTANCE.createTrim());
			Part<Part<?>> cp = ApplicationFactory.eINSTANCE.createPart();
			wbw.getTrim().setTopTrim(cp);
			cp = ApplicationFactory.eINSTANCE.createPart();