public RestResponse buildResponse(T response, XContentBuilder builder) throws Exception {
builder.startObject()
.field(Fields.ACKNOWLEDGED, response.isAcknowledged());
addCustomFields(builder, response);
builder.endObject();
return new BytesRestResponse(OK, builder);
}