synchronized(lk) {
if (request.isUpgrade()) {
HttpUpgradeHandler httpUpgradeHandler =
request.getHttpUpgradeHandler();
try {
httpUpgradeHandler.destroy();
} finally {
((StandardContext)request.getContext()).fireContainerEvent(
ContainerEvent.PRE_DESTROY, httpUpgradeHandler);
}
grizzlyRequest.getResponse().resume();