String key = (String)keyObj;
Object value = entry.get(key);
boolean store = false;
// boolean store = ! key.endsWith(AbstractResultMap.NOSTORE_DIRECTIVE);
boolean index = ! key.endsWith(AbstractResultMap.NOINDEX_DIRECTIVE);
JsappField field = new JsappField(key, value, index, store);
document.add(field);
if (! key.endsWith(AbstractResultMap.NOSTORE_DIRECTIVE)) {
byte[] keyBytes = ((String)key).getBytes("UTF-8");
byte[] valBytes = Util.sencode(value).getBytes("UTF-8");
ros.writeVInt(keyBytes.length);