boolean includeSelf, boolean restrictToDirectParent, int recursions) {
/* if the node is a doument node we still need to
* complete this method to check if we have found a potential parent
* in one of the iterations before.
*/
final NodeId parentOfSelfId = self.getNodeId().getParentId();
// check if the start-node should be included, e.g. to process an
// expression like *[. = 'xxx']
//TODO : investigate on expression like *[.//* = 'xxx']
if (recursions == 0 && includeSelf && test.matches(self)) {
// if we're on the child axis, test if