NXP-11089: make all code setting the current document use the DamActions#selectDocument method