};
public void onOpen(WebSocket webSocket) throws IOException
{
final Broadcaster broadcaster= webSocket.resource().getBroadcaster();
Receiver configuredReceiver= ServiceLocator.getInstance().getServerToClientMessageChannel().getReceiver();
if (!(configuredReceiver instanceof ChannelReceiverImpl))
ServiceLocator.getInstance().getServerToClientMessageChannel().setReceiver(new ChannelReceiverImpl());
else
configuredReceiver.reset();
ServiceLocator.getInstance().getServerToClientMessageChannel().setSender(new Sender()
{
public void send(String aMessage)
{