}
FormatWriter fw = factory.getRdfWriter(byteOutStream);
fw.setAnnotated(annotate);
outputMediaType = factory.getMimeType();
List<TripleHandler> tripleHandlers = new ArrayList<TripleHandler>();
tripleHandlers.add(new IgnoreAccidentalRDFa(fw));
tripleHandlers.add(new CountingTripleHandler());
rdfWriter = new CompositeTripleHandler(tripleHandlers);
reporter = new ReportingTripleHandler(rdfWriter);
rdfWriter = new IgnoreAccidentalRDFa(
new IgnoreTitlesOfEmptyDocuments(reporter),
true // suppress stylesheet triples.
);
return true;
}