}
}
private void doSaveDocument(Message<JsonObject> message) {
try {
EtCouchbaseClient client = clientFactory.getClient(couchHosts, getMandatoryString("bucket", message), password);
String id = getMandatoryString("id", message);
String document = getMandatoryObject("document", message).toString();
if (asyncWrites) {
client.set(id, document, PersistTo.ZERO, ReplicateTo.ZERO);
} else {
client.set(id, document).get();
}
sendOK(message);
} catch (Exception e) {
sendError(message, e.getMessage());