doc.addAttribute(XMIResource.HREF, href);
doc.addAttribute(XMLResource.HREF, href);
  protected void saveHref(EObject remote, EStructuralFeature f)  {    String name = helper.getQName(f);    String href = helper.getHREF(remote);    if (href != null)    {      doc.startElement(name);      EClass eClass = remote.eClass();      EClass expectedType = (EClass) f.getEType();      if (eClass != expectedType && expectedType.isAbstract())      {        saveTypeAttribute(eClass);      }      doc.addAttribute(XMIResource.HREF, href);      doc.endEmptyElement();    }  }