XMLRootConverter converter = new XMLRootConverter(xmlField);
mapping.addConverter(xmlField, converter);
}
hasJAXBElements = hasJAXBElements || !element.isXmlRootElement();
if(hasJAXBElements) {
mapping.setAttributeAccessor(new JAXBElementAttributeAccessor(mappingAccessor));
}
}
descriptor.addMapping(mapping);
return mapping;
}