* @see org.apache.uima.flow.FlowController_ImplBase#removeAnalysisEngines(java.util.Collection)
*/
public void removeAnalysisEngines(Collection aKeys) throws AnalysisEngineProcessException {
// Remove keys from Sequence
for (int i = 0; i < mSequence.size(); ++i) {
Step step = (Step) mSequence.get(i);
if (step instanceof SimpleStep && aKeys.contains(((SimpleStep) step).getAnalysisEngineKey())) {
mSequence.set(i, null);
} else if (step instanceof ParallelStep) {
Collection keys = new ArrayList(((ParallelStep) step).getAnalysisEngineKeys());
keys.removeAll(aKeys);