Also have a look here for getting all CBC elments when direct next level under root:
For a prototype (assuming some contstraints) we can create a Lookup Dictionary like: