code: public void insert(EventRecord er) {
      SerializedRecord sr = new SerializedRecord(er);
      try {
        Anonymizer.anonymize(sr);
      } catch (Exception e) {
        e.printStackTrace();
      }
      append(sr);
    }
docs: Insert an EventRecord to the local storage, after it
  gets serialized and anonymized.
  
  @param er the EventRecord to be inserted