I do not understand exactly what you are trying to do; however, your code does not take advantage of any bulk behavior to reduce the number of network calls to the AF server. For searching, I would recommend using the search namespace to find your elements and...