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