return graphDb;
}
public GraphDatabaseService connectHAWrapped(String dir, Map<String, String> haConfig, Map<String, Object> serverProperties) {
GraphDatabaseAPI graphDb = (GraphDatabaseAPI) this.connectHA(dir, haConfig);
ServerConfigurator config = new ServerConfigurator( graphDb );
Iterator<String> iterator = serverProperties.keySet().iterator();
while(iterator.hasNext()) {
String key = iterator.next();
config.configuration().setProperty(key, serverProperties.get(key));
}
new WrappingNeoServerBootstrapper( graphDb, config ).start();
return graphDb;