final AtomicBoolean started = new AtomicBoolean(false);
GraphAwareRuntime runtime = createRuntime(database, defaultConfiguration().withWritingConfig(new WritingConfig() {
@Override
public DatabaseWriter produceWriter(GraphDatabaseService database) {
return new BaseDatabaseWriter(database) {
@Override
public void start() {
started.set(true);
}