class SaveNotificationAPIController {

    protected void publishNotificationEvent(
            HttpSession httpSession,
            Notification notification,
            boolean succeeded)
    {
        String ipAddress = (String) httpSession.getAttribute("acm_ip_address");
        ApplicationNotificationEvent event = new ApplicationNotificationEvent(notification, "notification", succeeded, ipAddress);
        getNotificationEventPublisher().publishNotificationEvent(event);
    }

}