public static ReadableByteChannel wrapReadableChannel(ReadableByteChannel originalChannel) {
        return new ReadableByteChannelWrapper(originalChannel);
    }
Wraps the specified readable channel to count the number of bytes that were read.

@param originalChannel the readable byte channel to wrap.
@return The wrapped readable channel over the original readable channel .
xmppserver/src/main/java/org/jivesoftware/openfire/net/ServerTrafficCounter.java