return diffRecords;
}
private DiffRecord getDiffRecord(Field field) {
GenericObject fieldValue = (GenericObject) field.getValue();
DiffRecord rec = new DiffRecord();
rec.setSchema(fieldValue.getSchema());
if (field.getValue() instanceof GenericObject) {
rec.setTopLevelSerializerName(fieldValue.getObjectType());
((NFTypeSerializer<Object>) diffFramework.getSerializer(fieldValue.getObjectType())).serialize(fieldValue.getActualObject(), rec);
} else {
rec.setTopLevelSerializerName("primitive");
rec.serializePrimitive("value", field.getValue());
}
return rec;
}