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