if (aController instanceof AggregateAnalysisEngineController && (masterEndpoint != null && masterEndpoint.getStatus() == Endpoint.FAILED)) {
// Fetch an InputChannel that handles messages for a given delegate
InputChannel iC = aController.getReplyInputChannel(masterEndpoint.getDelegateKey());
// Create a new Listener, new Temp Queue and associate the listener with the Input Channel
iC.createListener(masterEndpoint.getDelegateKey(), null);
iC.removeDelegateFromFailedList(masterEndpoint.getDelegateKey());
anEndpoint.setDestination(masterEndpoint.getDestination());
}
}