class NotificationMessageManager {

    public List<NotificationMessage> buildNotificationMessages(NotificationEvent notificationEvent)
    {
        Assert.notNull(notificationEvent, "Parameter \"notificationEvent\" must not be null");

        return eventTypeNotificationMessageBuilderMap.get(notificationEvent.getClass()).buildNotificationMessages(notificationEvent);
    }

}