if (largeMode != null && largeMode.equalsIgnoreCase("true")) {
config = LARGE_CONFIG;
}
if (useBatchInserter) {
batchInserter = BatchInserters.inserter(getNeoPath().getAbsolutePath(), config);
graphDb = new SpatialBatchGraphDatabaseService(batchInserter);
} else {
graphDb = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(getNeoPath().getAbsolutePath()).setConfig( config ).newGraphDatabase();
}
if (autoTx) {
// with the batch inserter the tx is a dummy that simply succeeds all the time