final LinkedBlockingQueue<Boolean> queue = new LinkedBlockingQueue<Boolean>();
new Thread(tg, new Runnable() {
@Override
public void run() {
client = new HedwigClient(cfg);
serverSocketChannelFactory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),
Executors.newCachedThreadPool());
initializeHandlers();
initializeNetty();