@Override
        public void close() throws IOException {
            originalChannel.close();
        }
Wrapper on a WritableByteChannel to intercept and count number of written bytes.
xmppserver/src/main/java/org/jivesoftware/openfire/net/ServerTrafficCounter.java