(FileSystemXmlApplicationContext) ctx, this);
// Find all deployed Controllers
String[] controllers = ctx
.getBeanNamesForType(org.apache.uima.aae.controller.AnalysisEngineController.class);
for (int i = 0; controllers != null && i < controllers.length; i++) {
AnalysisEngineController cntlr = (AnalysisEngineController) ctx.getBean(controllers[i]);
cntlr.addControllerCallbackListener(this);
if (cntlr instanceof org.apache.uima.aae.controller.UimacppServiceController) {
//cntlr.addControllerCallbackListener(this);
topLevelController = cntlr;
} else {
// Pass a reference to the context to each of the Controllers
cntlr.setUimaEEAdminContext(springAdminContext);
if (cntlr.isTopLevelComponent()) {
topLevelController = cntlr;
initializeTopLevelController(cntlr, ctx);
}
}
}