resultBatch = preparedQuery(null, pq.name, Object[].class, Collections.<Type>emptyList(), Collections.emptyList(), pq.resultFields);
}
else {
QueryCommand query = protocol.createQuery(queryTxt);
protocol.execute(query);
if (query.getError() != null) {
throw new NoticeException("Error querying", query.getError());
}
List<QueryCommand.ResultBatch> resultBatches = query.getResultBatches();
if (resultBatches.isEmpty()) {
resultBatch = null;
}
else {
resultBatch = query.getResultBatches().get(0);
}
}
if (resultBatch == null) {