threadState = 1003; // Entering
// set the current component info of the CAS, so that it knows
// the sofa
// mappings for the component that's about to process it
UimaContextAdmin context = ((CollectionReader) collectionReader).getUimaContextAdmin();
casList[i].setCurrentComponentInfo(context.getComponentInfo());
try {
if (sofaUnaware) {
// sofa-unaware CR, give it whatever is mapped to the
// initial view (creating that view first if it's not the default)
String absSofaName = context.getComponentInfo().mapToSofaID(CAS.NAME_DEFAULT_SOFA);
if (!CAS.NAME_DEFAULT_SOFA.equals(absSofaName)) {
casList[i].createView(CAS.NAME_DEFAULT_SOFA);
}
CAS view = casList[i].getView(CAS.NAME_DEFAULT_SOFA);