String xpath = field.getXpath();
String strValue = null;
Object fieldValue = p.getValue(field.getName());
// First, see if the field should be included in the output
boolean outputField = handler.outputField(field, p);
if (outputField) {
if (field.getMaxOccurs() > 1) {
// We are expecting an ArrayList with one or more items
ArrayList list = (ArrayList)fieldValue;