if (!isTopLevelComponent()) {
((BaseAnalysisEngineController) parentController).stop();
} else if (!isStopped()) {
stopDelegateTimers();
getOutputChannel().cancelTimers();
InputChannel iC = getInputChannel(endpointName);
if ( iC != null) {
iC.setTerminating();
}
// Stop the inflow of new input CASes
stopInputChannel(true); // shutdownNow
if ( iC != null ) {
iC.terminate();
}
stopCasMultipliers();
stopTransportLayer();
if (cause != null && aCasReferenceId != null) {
this.stop(cause, aCasReferenceId, true); // shutdownNow