if (!neo4jProperties.containsKey("ha.initial_hosts")) {
throw new GraphConfigurationException("Check graph configuration. Neo4j HA requires [ha.initial_hosts] <properties> of the configuration");
}
return new Neo4j2HaGraph(graphFile, neo4jProperties);
} else {
return new Neo4j2Graph(graphFile, neo4jProperties);
}