public MoleculeGraph getNewGraph() {
graphNumber++;
MapFactory factory = new BdbMapFactory(BDB_HANDLER, "database" + graphNumber);
NodePoolFactory nodePoolFactory = new BdbNodePoolFactory(
new BdbEnvironmentHandlerImpl(new TempDirectoryHandler()), graphNumber);
MoleculeStructureIndex<Long>[] structureIndexes = createMoleculeStructureIndexes();
ReadableIndex<Long> readIndex = new ReadableIndexImpl(structureIndexes);
WritableIndex<Long> writeIndex = new WritableIndexImpl(structureIndexes);
NodePool nodePool = nodePoolFactory.createNewNodePool();
Localizer localizer = new LocalizerImpl(nodePool, STRING_MAPPER);