code: @Override
      public void flush() throws IOException {
          checkWriter();
          writer.flush();
          try {
              contentStoreUtil.storeContentStream(tempFile,
                                                  spaceId,
                                                  contentId,
                                                  mimetype);
          } catch (DuraCloudRuntimeException ex) {
              throw new IOException("flush failed: " + ex.getMessage(), ex);
          }
      }
docs: Writes the tempfile to durastore.