777879808182838485868788
return d; } private void addField(Document doc, String key, String value, int type) { Field field = new Field(); field.setKey(key); field.setValue(value); field.setType(type); doc.getFields().add(field); }