code: void prepareForWrite(long xaDataRecorderId) throws IOException, InterruptedException {
        this.dataLogger.reopen(AccessMode.WRITE);
        this.writeStartSequence(xaDataRecorderId);
     }
docs: prepares the Logger for writing. The current content is removed.
  
  @param dataRecorder
  @throws IOException
  @throws InterruptedException