ProcessingResourceMetaData crMetaData = collectionReader.getProcessingResourceMetaData();
if (crMetaData != null) {
manager.addMetaData(crMetaData);
}
if (collectionReader instanceof CollectionReader) {
CasInitializer casIni = ((CollectionReader) collectionReader).getCasInitializer();
if (casIni != null && casIni.getProcessingResourceMetaData() != null) {
manager.addMetaData(casIni.getProcessingResourceMetaData());
}
} else if (collectionReader instanceof CasDataCollectionReader) {
CasDataInitializer casIni = ((CasDataCollectionReader) collectionReader)
.getCasDataInitializer();
if (casIni != null && casIni.getCasInitializerMetaData() != null) {
manager.addMetaData(casIni.getCasInitializerMetaData());
}
}
for (int i = 0; i < annotatorList.size(); i++) {
ProcessingContainer container = (ProcessingContainer) annotatorList.get(i);
if (container.getStatus() == Constants.CAS_PROCESSOR_DISABLED) {