private List<PdfCounterRequestContextReport> writeCurrentRequests(
     JavaInformations javaInformations,
     List<Counter> counters,
     List<PdfCounterReport> pdfCounterReports)
     throws IOException, DocumentException {
   final List<PdfCounterRequestContextReport> pdfCounterRequestContextReports =
       new ArrayList<PdfCounterRequestContextReport>();
   final List<CounterRequestContext> rootCurrentContexts;
   if (currentRequests == null) {
     rootCurrentContexts = collector.getRootCurrentContexts(counters);
   } else {
     rootCurrentContexts = currentRequests;
   }
   if (rootCurrentContexts.isEmpty()) {
     addToDocument(new Phrase(getString("Aucune_requete_en_cours"), normalFont));
   } else {
     final PdfCounterRequestContextReport pdfCounterRequestContextReport =
         new PdfCounterRequestContextReport(
             rootCurrentContexts,
             pdfCounterReports,
             javaInformations.getThreadInformationsList(),
             javaInformations.isStackTraceEnabled(),
             pdfDocumentFactory,
             getDocument());
     pdfCounterRequestContextReport.toPdf();
     pdfCounterRequestContextReports.add(pdfCounterRequestContextReport);
   }
   return pdfCounterRequestContextReports;
 }
 private void writeCurrentRequestsDetails(
     List<PdfCounterRequestContextReport> pdfCounterRequestContextReports)
     throws IOException, DocumentException {
   for (final PdfCounterRequestContextReport pdfCounterRequestContextReport :
       pdfCounterRequestContextReports) {
     pdfCounterRequestContextReport.writeContextDetails();
   }
   if (pdfCounterRequestContextReports.isEmpty()) {
     addToDocument(new Phrase(getString("Aucune_requete_en_cours"), normalFont));
   }
 }