byte[] bytes = ValueUtils.serialize(entry.getValue());
output.writeInt(bytes.length);
output.writeBytes(bytes);</BUG>
});
}
<BUG>public E read(Kryo kryo, Input input, Class<E> type) {
int idBytesLen = input.readInt();
Object id = ValueUtils.deserialize(input.readBytes(idBytesLen));</BUG>
String label = input.readString();
long createdAt = input.readLong();

output.writeLong(element.createdAt());
output.writeLong(element.updatedAt());
Map<String, Object> properties = element.getProperties();
output.writeInt(properties.size());
properties.entrySet().forEach(entry -> {
output.writeString(entry.getKey());
kryo.writeClassAndObject(output, entry.getValue());
});
}
public E read(Kryo kryo, Input input, Class<E> type) {
Object id = kryo.readClassAndObject(input);
String label = input.readString();
long createdAt = input.readLong();
