skeleton.write(m, out, obj, null, attributes);
return;
}
Property property = _context.getSimpleTypeProperty(obj.getClass());
if (property != null) {
XmlInstanceWrapper instanceWrapper =
XmlInstanceWrapper.getInstance(property.getSchemaType());
if (attributes == null)
attributes = new ArrayList<XmlMapping>(1);
attributes.add(instanceWrapper);
// XXX the second obj here is a hack: we just need it not to be null.
// Figure out if the api is wrong or there is a reasonable value for
// the fifth argument instead of this second obj.
property.write(m, out, obj, namer, obj, attributes);
return;
}
if (obj instanceof Node) {
XMLInputFactory factory = _context.getXMLInputFactory();