extensionSwapClient = new ExtensionSwapClient(windowContext, userPreferences);
} else {
logger.info("Using custom ExtensionSwap website hostname: {}", websiteHostname);
extensionSwapClient = new ExtensionSwapClient(websiteHostname, windowContext, userPreferences);
}
ExtensionSwapInstallationHttpContainer container = new ExtensionSwapInstallationHttpContainer(extensionSwapClient,
userPreferences);
final Closeable closeableConnection = container.initialize();
if (closeableConnection != null) {
windowContext.addExitActionListener(new ExitActionListener() {
@Override
public void exit(int statusCode) {
FileHelper.safeClose(closeableConnection);