Bug 338707 Reconciler chokes on elements under parents that have been removed from the model
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/XMLModelReconciler.java
return referenceElement;
	}
	private Element createUniqueReferenceElement(Document document, EObject eObject) {
		EClass cls = eObject.eClass();
		EPackage pkg = (EPackage) cls.eContainer();
		Element referenceElement = document.createElement(REFERENCE_ELEMENT_NAME);
		E4XMIResource resource = (E4XMIResource) rootObject.eResource();
		String internalId = resource.getInternalId(eObject);
		referenceElement.setAttribute(XMIID_ATTNAME, internalId);
		referenceElement.setAttribute(NAMESPACE_ATTNAME, pkg.getNsURI());
		return referenceElement;
	}
	/**
	 * Creates an element that describes the state of the feature in the specified object.
	 * 
	 * @param document
	 *            the root XML element document
	 * @param object
	 *            the object to describe
	 * @param feature
	 *            the feature of interest
	 * @param featureName
	 *            the name of the feature
	 * @return an XML element that describes the feature's value in the provided object
	 */
	private Element createAttributeElement(Document document, EObject object,
			EStructuralFeature feature, String featureName) {
		Element referenceAttributeElement = document.createElement(featureName);
		if (object.eIsSet(feature)) {
			if (isSingleReference(featureName)) {