EntityMetadata meta = new EntityMetadata();
meta.setPersistent(true);
meta.setUuid(toWrite.getUuid());
visitors.visit(this, meta);
}
json.endArray(); // metadata
}
// Write extra top-level data keys, which are only used for simple side-channel data
for (Map.Entry<String, String> entry : entity.getExtraData().entrySet()) {
json.name(entry.getKey()).value(entry.getValue());