marshalRecord.setLeafElementType(xPathFragment.getLeafElementType());
}
XMLMarshaller marshaller = marshalRecord.getMarshaller();
// convert the value - if necessary
if (xmlCompositeCollectionMapping.hasConverter()) {
Converter converter = xmlCompositeCollectionMapping.getConverter();
if (converter instanceof XMLConverter) {
value = ((XMLConverter)converter).convertObjectValueToDataValue(value, session, marshaller);
} else {
value = converter.convertObjectValueToDataValue(value, session);
}
}
if (null == value) {
return xmlCompositeCollectionMapping.getNullPolicy().compositeObjectMarshal(xPathFragment, marshalRecord, object, session, namespaceResolver);
}