NettyAutoTerminatingClientGateway gateway = new NettyAutoTerminatingClientGateway();
gateway.setPort(1234);
gateway.setHost("localhost");
gateway.setHeartbeat(1000);
ClientNettyChannelHandler channelHandler = new ClientNettyChannelHandler();
channelHandler.setGateway(gateway);
channelHandler.setHeartbeatContainer(heartbeatContainer);
gateway.addMessageListener(new IDontNeedSecurity());
gateway.addMessageListener(new ClientMessageValidationListener());