if (! dataRoot.exists()) {
if (!dataRoot.mkdir()) {
throw new RuntimeException("Could not create database directory at "+dataRootName);
}
}
DbServiceFactory factory = new DbServiceFactory() {
@Override
public DbService makeDbService(final File subDbServiceHome, final DbService prevService) {
BagIndexBridge b = new BagIndexBridge(subDbServiceHome);
b.setBagIndexFactory(new BagEntryFactory() {
public BagEntry makeBagEntry(String bagName) {