throws IOException, XMLStreamException, JAXBException
{
if (! (obj instanceof JAXBElement))
throw new IllegalArgumentException(L.l("Object must be a JAXBElement"));
JAXBElement element = (JAXBElement) obj;
_accessor.setType(element.getDeclaredType());
JAXBElementMapping mapping = (JAXBElementMapping) _value;
mapping.setQName(element.getName());
mapping.setProperty(_context.createProperty(element.getDeclaredType()));
super.write(m, out, obj, namer, attributes);
}