Solution is: We will use some like Map<database path, database instance>. It allow reuse instances of Neo4j .