String uuid = (String)docMap.get("uuid");
return uuid;
}
protected String lookupUUID(String bucket, String id) {
GetRequestBuilder builder = client.prepareGet();
builder.setIndex(bucket);
builder.setId(id);
builder.setType(this.checkpointDocumentType);
builder.setFetchSource(true);
String bucketUUID = null;
GetResponse response;
ListenableActionFuture<GetResponse> laf = builder.execute();
if(laf != null) {
response = laf.actionGet();
if(response.isExists()) {
Map<String,Object> responseMap = response.getSourceAsMap();
bucketUUID = this.getUUIDFromCheckpointDocSource(responseMap);