Reader extension. The iterated query doesn't work (see NXP-3814). Collecting
all the documents in a list leads to exhaustive memory consumption and in
some case session time out. The mechanism of providing documents is based on
session.getChildren() and retrieving the list of the versions for current
document. The logic is a little more cumbersome because of that.