case SUCCESS:
final InMemoryWriter clientWriter = new InMemoryWriter();
final InMemoryWriter serverWriter = new InMemoryWriter();
final Connection serverConnection = upgradeInfo.createConnection(serverWriter, null);
final ClientEngine.ClientUpgradeInfo clientClientUpgradeInfo = clientEngine.processResponse(upgradeResponse, clientWriter, null);
final Connection clientConnection = clientClientUpgradeInfo.createConnection();
if (clientConnection == null) {
throw new DeploymentException("");
}
serverWriter.setReadHandler(clientConnection.getReadHandler());
clientWriter.setReadHandler(serverConnection.getReadHandler());
}
}