// Write the response.
// System.out.println(response.getResponse());
// System.out.println("*****");
// System.out.println(response.getResponse().getContent().toString());
ChannelFuture future = con.sendMessage(response);
// Close the non-keep-alive connection after the write operation is done.
if (!isStrest) {
// log.info("CLOSING NON STREST CONNECTION");
future.addListener(ChannelFutureListener.CLOSE);