if (!(configuredReceiver instanceof ChannelReceiverImpl))
ServiceLocator.getInstance().getServerToClientMessageChannel().setReceiver(new ChannelReceiverImpl());
else
configuredReceiver.reset();
ServiceLocator.getInstance().getServerToClientMessageChannel().setSender(new Sender()
{
public void send(String aMessage)
{
broadcaster.broadcast(aMessage);
}