asyncListeners = new LinkedHashMap<AsyncListener, AsyncListenerRegistration>();
for (AsyncListenerRegistration registration : localAsyncListeners.values()) {
AsyncListener asyncListener = registration.getListener();
AsyncEvent asyncEvent = new AsyncEvent(asyncContext, registration.getRequest(), registration.getResponse());
try {
asyncListener.onStartAsync(asyncEvent);
} catch (IOException e) {
throw new IllegalStateException(sm.getString("coyoteRequest.onStartAsyncError",
asyncListener.getClass().getName()), e);
}
}