RF-13933: clear EDT datamodel before encoding