public void connected(final IOSession session) {
// Decorate I/O session with logging capabilities
LoggingNHttpClientConnection conn = new LoggingNHttpClientConnection(
new LoggingIOSession(session),
new DefaultHttpResponseFactory(),
new HeapByteBufferAllocator(),
this.params);
session.setAttribute(NHTTP_CONN, conn);
Object attachment = session.getAttribute(IOSession.ATTACHMENT_KEY);
this.handler.connected(conn, attachment);