LRDCOM-5201 LRDCOM-3586 Fix compat, can't use DocumentImpl because it gets deserialized with the portal's