logger.debug("client was null");
}
if(response != null) {
Iterator<MultiGetItemResponse> iterator = response.iterator();
while(iterator.hasNext()) {
MultiGetItemResponse item = iterator.next();
if(item.isFailed()) {
logger.warn("_revs_diff get failure on index: {} id: {} message: {}", item.getIndex(), item.getId(), item.getFailure().getMessage());
} else {
if(item.getResponse().isExists()) {
String itemId = item.getId();
Map<String, Object> source = item.getResponse().getSourceAsMap();
if(source != null) {
Map<String, Object> meta = (Map<String, Object>)source.get("meta");
if(meta != null) {
String rev = (String)meta.get("rev");
//retrieve the revision passed in from Couchbase