message.append(String.format("[Action '%s' ", item.getClass().getSimpleName()));
if (item instanceof IndexRequest) {
IndexRequest request = (IndexRequest) item;
message.append(String.format("for key '%s'", request.id()));
message.append(String.format(" on index '%s'", request.index()));
message.append(String.format(" on type '%s'", request.type()));
} else if (item instanceof UpdateRequest) {
UpdateRequest request = (UpdateRequest) item;
message.append(String.format("for key '%s'", request.id()));
message.append(String.format(" on index '%s'", request.index()));
message.append(String.format(" on type '%s'", request.type()));