ApplicationException e = new DocumentException(ErrorCodes.DOCUMENT_DOES_NOT_EXIST, "Document Data Missing in Request Body");
formErrorResponse(logger, e);
} else {
// New Document Keys
DBObject newDoc = (DBObject) JSON.parse(keys);
result = documentService.updateDocument(dbName, collectionName, _id, newDoc);
Set<String> completeSet = new HashSet<String>();
getNestedKeys(newDoc, completeSet, "");
completeSet.remove("_id");
resultJSON.put("keys", completeSet);
}