@Override
public void run() {
final ThreadSetupAction.Handle handle = threadSetupAction.setup(ServletUpgradeListener.this.exchange);
try {
//run the upgrade in the worker thread
instance.getInstance().init(new WebConnectionImpl(channel, ServletUpgradeListener.this.exchange.getConnection().getBufferPool()));
} finally {
handle.tearDown();
}
}
});