title: Can JAXB marshal by containment at first then marshal by @XmlIDREF for subsequent references?
body: <p>I'm wondering if it's possible to annotate my classes so that the first time the marshaller encounters an object, it generates an XML element of the appropriate type, but any subsequent reference to this object by anything else will have an XML IDREF entry created?</p>