// Import attachments
Iterator<String> attNames = form.attachmentNames().iterator();
while (attNames.hasNext()) {
String name = attNames.next();
DataSource data = form.attachmentData(name);
ServicesFileItem servicesFileItem = new ServicesFileItem(name, data);
parseFileItem(servicesFileItem);
}
}