code: private static void printData(StatisticsContext context)
     {
        if (context.writer == null)
        {
           return;
        }
        boolean first = true;
        if (context.global != null)
        {
           context.global.printData(context.writer);
           first = false;
        }
        for (Statistics s : context.allStatistics.values())
        {
           if (first)
           {
              first = false;
           }
           else
           {
              context.writer.print(',');
           }
           s.printData(context.writer);
        }
        context.writer.println();
        context.writer.flush();
     }
docs: Add one line of data to the csv file related to the given context.