Visitor - 2013-04-27

By the way we cannot use getKids directly because I have some documents not balanced where the getKids cache all the 160.000 pages resulting in a looong loop and memory usage in the method getKids
so I used your solution mixed with mine and the result is a working code that I want to share with you and the community

tested both on balanced document an not balanced document the result works very well
Thank you all for the support.