code: @Override
    @InService(PageServiceImpl.class)
    void writeImpl(TableKelp table,
                   PageServiceImpl pageServiceImpl,
                   TableWriterService readWrite,
                   SegmentStream sOut,
                   long oldSequence,
                   int saveLength,
                   int saveTail)
    {
      Objects.requireNonNull(sOut);
      
      // System.out.println("WIMPL:" + this + " "+ Long.toHexString(System.identityHashCode(this)) + " " + _stub);
      if (saveLength <= 0
          || oldSequence != sOut.getSequence()
          || _stub == null
          || ! _stub.allowDelta()) {
        PageLeafImpl newPage;
        
        if (! isDirty() 
            && (_blocks.length == 0 || _blocks[0].isCompact())) {
          newPage = copy(getSequence());
        }
        else {
          newPage = compact(table);
        }
  
        int sequenceWrite = newPage.nextWriteSequence();
  
        if (! pageServiceImpl.compareAndSetLeaf(this, newPage)
            && ! pageServiceImpl.compareAndSetLeaf(_stub, newPage)) {
          System.out.println("HMPH: " + pageServiceImpl.getPage(getId()) + " " + this + " " + _stub);
        }
        
        saveLength = newPage.getDataLengthWritten();
        
        // newPage.write(db, pageActor, sOut, saveLength);
        
        // oldSequence = newPage.getSequence();
        
        saveTail = newPage.getSaveTail();
        
        newPage.clearDirty();
  
        readWrite.writePage(newPage, sOut,
                            oldSequence, saveLength, saveTail,
                            sequenceWrite,
                            Result.of(x->newPage.afterDataFlush(pageServiceImpl, sequenceWrite)));
      }
      else {
        int sequenceWrite = nextWriteSequence();
        
        clearDirty();
        
        readWrite.writePage(this, sOut,
                            oldSequence, saveLength, saveTail,
                            sequenceWrite,
                            Result.of(x->afterDataFlush(pageServiceImpl, sequenceWrite)));
      }
    }
docs: Sends a write-request to the sequence writer for the page.
  
  Called in the TableServerImpl thread.