this.con = con;
this.callback = callback;
}
public void addListenerTo(AsyncContext context, final ServletAdapter.AsyncCompletionCheck completionCheck) {
context.addListener(new AsyncListener() {
public void onComplete(AsyncEvent event) throws IOException {
LOGGER.finer("Asynchronous Servlet Invocation completed for "+((HttpServletRequest)event.getAsyncContext().getRequest()).getRequestURL());
callback.onCompletion();