// in contrast to standard UNLOCK, the tx-unlock provides a
// request body.
method.setRequestBody(new TransactionInfo(commit));
client.executeMethod(method);
method.checkSuccess();
if (sessionInfo instanceof SessionInfoImpl) {
((SessionInfoImpl) sessionInfo).setLastBatchId(batchId);
}
} catch (IOException e) {
throw new RepositoryException(e);