}
TrivialBagIndex puts = new TrivialBagIndex();
long revNum = puts.commitNewRev(buffer);
BagIndexBridge bridge = new BagIndexBridge();
bridge.setTxnMapper(new ProcessTransactionMapper());
bridge.setBagEntry("",new BagEntry(puts));
HashMap<String,Long> revs = new HashMap<String,Long>();
revs.put("", revNum);
bridge.getTxnMapper().addRevsForTxn(0, revs);
return bridge.query("", 0, query, options);
}