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
if (defaultValue != null) {
				return defaultValue;
			}
			throw new RuntimeException(
					"could not find satisfiable method " + methodName + " in class " + object.getClass()); 
		}
		Class[] paramKeys = targetMethod.getParameterTypes();
		try {
			Object[] params = new Object[paramKeys.length];
			for (int i = 0; i < params.length; i++) {
				params[i] = context.get(paramKeys[i].getName());
			}
			return targetMethod.invoke(object, params);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
	
	public Display getDisplay() {
		return appWindow.getDisplay();
	}
	public void closeWindow(WorkbenchWindow workbenchWindow) {
		
		((Shell)workbenchWindow.getWidget()).close();
	}
	public Shell getShell() {
		return appWindow;
	}
}