// FETCH FIELDS FROM MESSAGE TO BE INDEX IN LUCENE
 private List<ArchiveIndexFieldsVO> getArchiveIndexFields(
     Document messageDocument, File configureFile) {
   Document configureDocument = XMLHelper.getXMLDocument(configureFile);
   List<ArchiveIndexFieldsVO> indexFields = new ArrayList<ArchiveIndexFieldsVO>();
   NodeList indexNodeList =
       (NodeList)
           XMLHelper.read(
               configureDocument,
               "//HL7MessageConfiguration/ArchiveConfiguration/Field",
               XPathConstants.NODESET);
   for (int i = 0; i < indexNodeList.getLength(); i++) {
     Node node = indexNodeList.item(i);
     Element element = (Element) node;
     String name = element.getAttribute("name");
     String indexed = element.getAttribute("indexed");
     String type = element.getAttribute("type");
     String value =
         (String)
             XMLHelper.read(messageDocument, element.getAttribute("xpath"), XPathConstants.STRING);
     indexFields.add(new ArchiveIndexFieldsVO(name, indexed, "", value, type));
   }
   return indexFields;
 }