Iterator comments = blogEntry.getComments().iterator();
while (comments.hasNext()) {
Comment comment = (Comment)comments.next();
if (comment.isApproved()) {
CommentEvent event = new CommentEvent(comment, CommentEvent.COMMENT_APPROVED);
ipAddressListener.commentApproved(event);
} else if (comment.isRejected()) {
CommentEvent event = new CommentEvent(comment, CommentEvent.COMMENT_REJECTED);
ipAddressListener.commentRejected(event);
}
}