[CDE-284] - Fixed repository file tree handling to iterate over the retu...

...rned object instead get the children again from the repository