147148149150151152153154155156157
sink.coverPage(); if ( tocPosition == FoAggregateSink.TOC_START ) { sink.toc(); } if ( ( documentModel.getToc() == null ) || ( documentModel.getToc().getItems() == null ) ) { getLogger().info( "No TOC is defined in the document descriptor. Merging all documents." );
165166167168169170171172173174175
mergeSourcesFromTOC( documentModel.getToc(), sink, context ); } if ( tocPosition == FoAggregateSink.TOC_END ) { sink.toc(); } sink.endDocument(); } finally