private void outputAll(CAS cas, List<ResultEntry> resultEntries) {
checkCreateDefaultMap(cas.getTypeSystem());
// Output everything except the document annotation.
Type docAnnotationType = cas.getTypeSystem().getType(CAS.TYPE_NAME_DOCUMENT_ANNOTATION);
FSIterator it = cas.getAnnotationIndex().iterator();
for (it.moveToFirst(); it.isValid(); it.moveToNext()) {
AnnotationFS annot = (AnnotationFS) it.get();
if (annot.getType().equals(docAnnotationType)) {
// Skip the document annotation
continue;
}