code: public void monitor(LocalStore ls) {
      int in = 0;
      EventRecord er = null;
      Environment.logInfo("Started processing log...");
  
      while ((er = getNext()) != null) {
        // Environment.logInfo("Processing log line:\t" + in++);
        if (er.isValid()) {
          ls.insert(er);
        }
      }
  
      PersistentState.updateState(file.getAbsolutePath(), firstLine, offset);
      PersistentState.writeState("conf/parsing.state");
    }
docs: Insert all EventRecords that can be extracted for
  the represented hardware component into a LocalStore.
  
  @param ls the LocalStore into which the EventRecords
  are to be stored.