Get Instance from Tree and Filtering tree with a lot of Branches

Maybe this post might be similar to my problem.