masterEndpoint != null && masterEndpoint.getStatus() == Endpoint.FAILED) {
HashMap<Object, Object> map = new HashMap<Object, Object>();
Delegate delegate = ((AggregateAnalysisEngineController) controller).lookupDelegate(delegateEndpoint.getDelegateKey());
// Cancel Delegate timer before entering Error Handler
if ( delegate != null ) {
delegate.cancelDelegateTimer();
}
// Handle the Connection error in the ProcessErrorHandler
map.put(AsynchAEMessage.Command, AsynchAEMessage.Process);
map.put(AsynchAEMessage.CasReference, aMessage.getStringProperty(AsynchAEMessage.CasReference));
map.put(AsynchAEMessage.Endpoint, masterEndpoint);