@Override
 public void collectionProcessComplete() throws AnalysisEngineProcessException {
   getLogger()
       .log(
           Level.INFO,
           "Done processing collection, printin cas to "
               + outputDir
               + "/"
               + outputFileName
               + ".xmi");
   aggregateJCas.setDocumentText(content.toString());
   RelexWriter.writeSingleJCas(aggregateJCas, Paths.get(outputDir, outputFileName + ".xmi"));
   super.collectionProcessComplete();
 }
 @Override
 public void initialize(UimaContext context) throws ResourceInitializationException {
   super.initialize(context);
   getLogger().log(Level.INFO, "Initializing RELEX Candidate Extractor");
   content = new StringBuilder();
 }