if (firstNode.getNodeType() == Node.ELEMENT_NODE) {
Element fieldElement = (Element) firstNode;
String fieldName = getNode(fieldElement, "name");
FieldInfo fieldInfo = new FieldInfo(fieldName);
String type = getNode(fieldElement, "type");
fieldInfo.setType(type);
String analyzer = getNode(fieldElement, "analyzer");
fieldInfo.setAnalyzer(analyzer);
String store = getNode(fieldElement, "store");
fieldInfo.setStore(store);
readFields.add(fieldInfo);
}
return readFields;
}