w.object();
w.key("status").value("ok");
if (task != null) {
w.key("id").value(task.getId());
}
w.endObject();
} catch (Exception e) {
log.error("Error while executing command {}", cmd, e);
response.setContentType("application/json");
response.setCharacterEncoding("utf-8");