BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String query;
System.out.print("Query: ");
while ((query=reader.readLine())!=null && !query.isEmpty()) {
long time=System.currentTimeMillis();
CypherResult result = restAPIFacade.query(query, null);
time=System.currentTimeMillis()-time;
System.out.println(result.getColumns());
List<List<Object>> rows = (List<List<Object>>) result.getData();
for (List<Object> row : rows) {
System.out.println(row);
}
System.out.println(rows.size()+" row(s), roundtrip time "+time+" ms.");
System.out.print("Query: ");