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

This reverts commit f5c55934ee43076e8a5c6c2b0e5fcb44ac4e9735.