// This will in turn invoke the startEventHandler when server sends
// Events.START event.
Channel channel = tcpClient.connect(tcpFactory, event);
if (null != channel)
{
Reliable tcpMessageSender = new NettyTCPMessageSender(channel);
session.setTcpMessageSender(tcpMessageSender);
}
else
{
throw new Exception("Could not create TCP connection to server");