private void handleReadsAndWrites(final SelectionKey sk, final MemcachedNode node) throws IOException {
      if (sk.isValid() && sk.isReadable()) {
          handleReads(node);
      }

      if (sk.isValid() && sk.isWritable()) {
          handleWrites(node);
      }
  }
A helper method for {@link #handleIO(java.nio.channels.SelectionKey)} to
handle reads and writes if appropriate.

@param sk the selection key to use.
@param node th enode to read write from.
@throws IOException if an error occurs during read/write.
src/main/java/net/spy/memcached/MemcachedConnection.java