if (list != null) {
for (Object fieldListItem : list) {
// Do some pre-processing on the field if required
boolean continueProcessing =
handler.preProcessSerialise(namespaces, fieldListItem, xpath, parent, xmldoc, field, p);
// Sometimes the pre-processing may handle the node creation itself (e.g. for coded items),
// in which case we don't need to continue here
if (continueProcessing) {
// If the field is not blank, create a new node or nodes for it to go into