code: public static WriteFutureEx newWrittenFuture(IoSession session) {
          DefaultWriteFutureEx unwrittenFuture = new DefaultWriteFutureEx(session);
          unwrittenFuture.setWritten();
          return unwrittenFuture;
      }
docs: Returns a new {@link DefaultWriteFuture} which is already marked as 'written'.