You might consider adding the zone and the terminal in one method call to addBranchForZone, avoiding the need to retrieve the node altogether.
airLoop.addBranchForZone(zone,terminal)