NXP-12342: put the whole detached document in the context instead of its id