private String buildQuery(Map<String, Object> params) {
StringBuilder query = new StringBuilder("START n=node({id}) MATCH n");
Direction direction = randomDirection();
RelationshipQualifier typeOrProperty = (RelationshipQualifier) params.get(TYPE_OR_PROPERTY);
if (INCOMING.equals(direction)) {
query.append("<");
}