} else if (val instanceof List) {
List list = (List)val;
prefix = CompoundBytes.make(prefix, HEADER_BYTE_LISTOPEN);
if (true) {
Bytes headerBytes = CompoundBytes.make(prefix, suffix);
buffer.add(new EditRec(docId, headerBytes.flatten(), idDel));
}
for(int index=list.size()-1; index>=0; index--) {
Object subVal = list.get(index);
Bytes newSuffix = CompoundBytes.make(DbServiceUtil.sencodeListIndex(index), suffix);
sencodeMulti(prefix, newSuffix, subVal, buffer, docId, idDel);