WFLY-3705 read-resource recursive-depth has no effect

The snippet works as follows: recurs IF recursive is set AND (either recursive-depth is not defined OR recursive-depth is greater than 0).