while (it.hasNext()) {
CommentListener listener = (CommentListener)it.next();
if (event.getType() == CommentEvent.COMMENT_ADDED) {
listener.commentAdded(event);
} else if (event.getType() == CommentEvent.COMMENT_REMOVED) {
listener.commentRemoved(event);
} else if (event.getType() == CommentEvent.COMMENT_APPROVED) {
listener.commentApproved(event);
} else if (event.getType() == CommentEvent.COMMENT_REJECTED) {
listener.commentRejected(event);
}