public void dump() {
    Log.d("HarvestJournal", "dump");
    for (String packageName : (Set<String>) data.keySet()) {
      HashMap sessions = (HashMap) data.get(packageName);

      for (Long started : (Set<Long>) sessions.keySet()) {
        HarvestEntry entry = (HarvestEntry) sessions.get(started);
        storage.persist(entry);
      }
    }

    data.clear();
    lastPersisted = settings.getRealNowSeconds();
  }
 public List<HarvestEntry> getEntries() {
   Log.d("HarvestJournal", "getEntries");
   dump();
   Long started = settings.getStarted(settings.getLastReported());
   return storage.retrieve(started);
 }