@Override
    public void addCompression() {
        // Inbound traffic only
        if (isEncrypted()) {
            channelHandlerContext.channel().pipeline().addAfter(SSL_HANDLER_NAME, "inboundCompressionHandler", new JZlibDecoder());
        }  else {
            channelHandlerContext.channel().pipeline().addFirst(new JZlibDecoder());
        }
    }
Updates the system counter of written bytes. This information is used by the "outgoing bytes" statistic.

@param ctx the context for the channel writing bytes
xmppserver/src/main/java/org/jivesoftware/openfire/nio/NettyConnection.java