ErrorContext errorContext = new ErrorContext();
errorContext.add(AsynchAEMessage.CasReference, aCasReferenceId);
errorContext.add(AsynchAEMessage.Command, AsynchAEMessage.Process);
errorContext.add(AsynchAEMessage.Endpoint, anEndpoint);
AnalysisEngineController controller = getController();
controller.getErrorHandlerChain().handle(new ExpiredMessageException(), errorContext, controller);
}