Bug 280846 [UI][CSS] Null styling engine required in main context for tests to run
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
java.net.URL url = new java.net.URL(applicationDefinitionInstance.toString());
				Object[] obj = PlatformURLPluginConnection.parse(url.getFile().trim(), url);
				Bundle b = (Bundle) obj[0];
				URLConnection openConnection = b.getResource((String) obj[1]).openConnection();
				appLastModified = openConnection.getLastModified();
			} catch (Exception e) {
				
			}
		}
		
		boolean restore = restoreLastModified > appLastModified;
		if (restore) {
			System.err.println("Restoring workbench: " + restoreLocation); 
			workbench = (MApplication<MWindow>) resourceSetImpl.getResource(restoreLocation, true)
					.getContents().get(0);
		} else {
			System.err.println("Initializing workbench: " + applicationDefinitionInstance); 
			Resource resource = new XMIResourceImpl();
			workbench = loadDefaultModel(applicationDefinitionInstance);
			resource.getContents().add((EObject) workbench);
			resource.setURI(restoreLocation);
		}
		init();
		return workbench;
	}
	private MApplication<? extends MWindow> loadDefaultModel(URI defaultModelPath) {
		Resource resource = new ResourceSetImpl().getResource(defaultModelPath, true);
		MApplication<MWindow> app = (MApplication<MWindow>) resource.getContents().get(0);
		final EList<MWindow> windows = app.getWindows();
		for (MWindow window : windows) {