}
public Answer executeQuery(Graph graph, String queryText) throws InvalidQuerySyntaxException, GraphException {
checkNotNull(graph, queryText);
checkNotEmptyString("queryText", queryText);
Query query = builder.buildQuery(graph, queryText);
if (graph.isEmpty()) {
return getEmptyAnswer(query);
}
return query.executeQuery(graph, queryEngine);
}