HttpClient client = getClient(sessionInfo);
client.executeMethod(method);
if (method.getStatusCode() == DavServletResponse.SC_PRECONDITION_FAILED) {
throw new InvalidItemStateException("Unable to persist transient changes.");
}
method.checkSuccess();
batchId = method.getLockToken();
return client;
} catch (IOException e) {