class SaveNoteAPIController {

    protected void publishNoteEvent(HttpSession httpSession, Note note, String eventType, boolean succeeded)
    {
        String ipAddress = (String) httpSession.getAttribute("acm_ip_address");
        ApplicationNoteEvent event = new ApplicationNoteEvent(note, eventType, succeeded, ipAddress);
        getNoteEventPublisher().publishNoteEvent(event);
    }

}