public void serialize(File file) throws FileNotFoundException {
   FileOutputStream fos = new FileOutputStream(file);
   PrintWriter printWriter = new PrintWriter(fos);
   List items = new ArrayList(runEntryStatistics.values());
   Collections.sort(items, new RunCountComparator());
   RunEntryStatistics item;
   for (Iterator iter = items.iterator(); iter.hasNext(); ) {
     item = (RunEntryStatistics) iter.next();
     printWriter.println(item.getAsString());
   }
   printWriter.close();
 }