public static DbService makeMemoryDb() {
BagIndexBridge b = new BagIndexBridge();
final ProcessTransactionMapper mapper = new ProcessTransactionMapper();
mapper.addRevsForTxn(0, new HashMap<String,Long>());
b.setBagIndexFactory(new BagEntryFactory() {
public BagEntry makeBagEntry(String bagName) {
MemoryBlueSteelBagIndex bagIndex = new MemoryBlueSteelBagIndex();
mapper.introduceBag(bagName, bagIndex);
return new BagEntry(bagIndex);
}