code: @Override
     public void write() throws IOException
     {
        // if READ_WRITE and is dirty, then flush. 
        if (isDirty() && modeHandler.getMode() == IndexerIoMode.READ_WRITE)
        {
           // write to FS
           super.write();
           if (cache.getStatus() == ComponentStatus.RUNNING)
           {
              // write to cache
              write.run();
           }
        }
     }
docs: {@inheritDoc}