NXP-14083: add context parameter when resolving multiple document reference