saveElement(target, helper.getIDREF(target), f);
if (!toDOM) { saveElementIDRef(target, f); } else { String name = helper.getQName(f); String id = helper.getIDREF(target); helper.populateNameInfo(nameInfo, f); Element elem = document.createElementNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName()); Node text = document.createTextNode(id); elem.appendChild(text); currentNode.appendChild(elem); handler.recordValues(elem, o, f, target); handler.recordValues(text, o, f, target); }
  protected void saveElementIDRef(EObject target, EStructuralFeature f)  {    saveElement(target, helper.getIDREF(target), f);  }