I have successfully used CasMultiplier to spilt up a document into segments for further processing using SimplePipeline.runPipeline(). I did this by wrapping the CasMultiplier and the succeeding Annotator within a aggregate.
But by simply changing the usage of SimplePipeline.runPipeline() to using JCasIterable. The code no longer runs correctly, i.e., it's returning as CAS only the number of physical documents, instead of the segments that i expected. How can I can CasMultiplier to work with a JCasIterable?