private void checkResult() {
if (result==null) throw new IllegalStateException("Result not yet available, please finish the transaction first.");
}
public static QueryResultBuilder<Map<String, Object>> toQueryResult(CypherResult responseData, RestAPI restApi, ResultConverter resultConverter) {
final RestTableResultExtractor extractor = new RestTableResultExtractor(restApi.getEntityExtractor());
final List<Map<String, Object>> data = extractor.extract(responseData.asMap());
return new QueryResultBuilder<>(data, resultConverter);
}