public Connection processResponse(UpgradeResponse upgradeResponse, final Writer writer, final Connection.CloseListener closeListener) {
try {
clientHandShake.validateServerResponse(upgradeResponse);
final TyrusWebSocket tyrusWebSocket = new TyrusWebSocket(protocolHandler, new TyrusEndpoint(endpointWrapper));
final List<Extension> handshakeResponseExtensions = TyrusExtension.fromHeaders(upgradeResponse.getHeaders().get(HandshakeRequest.SEC_WEBSOCKET_EXTENSIONS));
final List<Extension> extensions = new ArrayList<Extension>();
final ExtendedExtension.ExtensionContext extensionContext = new ExtendedExtension.ExtensionContext() {