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);
}
});
b.setTxnMapper(mapper);
return new ScoringDbService(b);