Bug 299680 Loading model deltas should properly process exception and fallback to the base model
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/ResourceHandler.java
private ResourceSetImpl resourceSetImpl;
	private URI restoreLocation;
	private Resource resource;
	private ModelReconciler reconciler;
	public ResourceHandler(Location instanceLocation, URI applicationDefinitionInstance,
			boolean saveAndRestore) {
		this.applicationDefinitionInstance = applicationDefinitionInstance;
		resourceSetImpl = new ResourceSetImpl();
		resourceSetImpl.getResourceFactoryRegistry().getExtensionToFactoryMap().put(
				Resource.Factory.Registry.DEFAULT_EXTENSION, new E4XMIResourceFactory());
		resourceSetImpl.getPackageRegistry().put(MApplicationPackage.eNS_URI,
				MApplicationPackage.eINSTANCE);
		
		try {
			workbenchData = new File(URIUtil.toURI(instanceLocation.getURL()));
		} catch (URISyntaxException e) {
			throw new RuntimeException(e);
		}
		workbenchData = new File(workbenchData, ".metadata"); 
		workbenchData = new File(workbenchData, ".plugins"); 
		workbenchData = new File(workbenchData, "org.eclipse.e4.workbench"); 
		if (RESTORE_VIA_DELTAS) {
			workbenchData = new File(workbenchData, "deltas.xml"); 	
		} else {
			workbenchData = new File(workbenchData, "workbench.xmi"); 			
		}
		if (workbenchData != null && saveAndRestore) {
			restoreLocation = URI.createFileURI(workbenchData.getAbsolutePath());
		}
	}