Example for using Java as Websocket server side with Java-WebSocket library(http://java-websocket.org/)