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
try {
				impl = (ILegacyHook) hooks[0].createExecutableExtension("class");
				legacyHook = impl;
				legacyHook.init(this);
			} catch (CoreException e) {
				e.printStackTrace();
			}
		}
	}
	private EObject findObject(TreeIterator<EObject> it, String id) {
		while (it.hasNext()) {
			EObject el = it.next();
			if (el instanceof ApplicationElement) {
				if (el.eResource().getURIFragment(el).equals(id)) {
					return el;
				}
			}
		}
		return null;
	}
	private void init(Application<WorkbenchWindow> workbench) {