Use Java Iterator to traverse listeners