protected void processCaseContents(ProcessingState sourceCase, ICopyableIterator<TspElement> elementStream)
throws TemplatedSourceException {
assertNotNull(sourceCase);
while(elementStream.hasNext()) {
TspElement tspElem = elementStream.next();
elementStream = elementStream.optimizedSelf();
if(tspElem instanceof TspExpansionElement) {
TspExpansionElement expansionElem = (TspExpansionElement) tspElem;