protected void onMessage(WebSocketRequestHandler handler, TextMessage message)
{
log.info("Received message {}", message.getText());
FeedItem feedItem = new FeedItem(message.getText());
IWebSocketSettings webSocketSettings = IWebSocketSettings.Holder.get(getApplication());
WebSocketPushBroadcaster broadcaster =
new WebSocketPushBroadcaster(webSocketSettings.getConnectionRegistry());
broadcaster.broadcastAll(Application.get(), feedItem);
latestMessage.setDefaultModelObject(feedItem).modelChanged();
log.info("AddContent: {}", handler);
handler.add(latestMessage);
}