connection.dispatch(event);
}
};
// Perform as much as possible of the interaction while the logging is routed to the client
loggingOutput.addOutputEventListener(listener);
try {
doRunWithLogging(connection, serverControl, executionListener);
} finally {
loggingOutput.removeOutputEventListener(listener);
}