if (null == content) {
logger.debug("had document without " + field + " field. Continuing with other fields.");
continue;
}
Element docField = DocumentHelper.createElement("field");
docField.addText(content);
docField.addAttribute("name",field);
docField.addAttribute("indexed", Boolean.toString(INDEXED));
docField.addAttribute("stored", Boolean.toString(STORED));
docField.addAttribute("tokenized", "true");
bodyElement.getParent().add(docField);