public class DiaryLogger implements CrysonListener {
public void commitCompleted(CommitNotification commitNotification) {
for(Object createdObject : commitNotification.getCreatedEntities()) {
if (createdObject instanceof Entry) {
Entry createdEntry = (Entry)createdObject;
System.out.println("### " + createdEntry.getUserName() + " created diary entry '" + createdEntry.getTitle() + "'");
}
}
}