}
context.setRowUpdateCount(++count);
} while (nextTuple(rows, rows.length, context, xa));
} catch (IOException e) {
throw new SQLExceptionWrapper(e);
} finally {
// autoCommitWrite must be before freeRows in case freeRows
// throws an exception
context.close();