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