Thread t = null;
if(LOG.isDebugEnabled())
LOG.debug("=>=>=>=WRite complete start" + e);
if(_disableWriteComplete) {
LOG.info("Injecting exceptions into writeComplete");
_future.setFailure(new WriteTimeoutException("Mocked WriteTimeout"));
_future.setFailure(new ClosedChannelException());
TestUtil.sleep(16000); // 16s sleep
} else if(_delayWriteComplete) {
LOG.info("Injecting delay into writeComplete");
t = startExceptionThread(ctx);