Bug 309665 Don't eagerly set element ids in the resource
The EMF resource should not be setting a model element's element id given that that is a string that a developer should be making use of.
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/E4XMIResource.java
if (eObject instanceof Entry<?, ?>) {
			return null;
		}
		String id = super.getID(eObject);
		if (id != null) {
			return id;
		}
		id = objectMap.get(eObject);
		if (id != null) {
			return id;
		}
		if (eObject instanceof MApplicationElement) {
			MApplicationElement element = (MApplicationElement) eObject;
			id = element.getElementId();
			if (id != null && id.length() != 0) {
				id = getUniqueId();
				setID(eObject, id);
				return id;
			}
			id = getUniqueId();
			element.setElementId(id);
			setID(eObject, id);
		} else {
			id = getUniqueId();
			setID(eObject, id);
		}
		return id;
	}
}