NXP-11419: completely replace old API to avoid confusing the search DocumentModel and documents passed as parameters
NXP-11427: test if parent is readable before getting it