SSLEngineConfigurator sslEngineConfigurator = (properties == null ? null : (SSLEngineConfigurator) properties.get(GrizzlyClientContainer.SSL_ENGINE_CONFIGURATOR));
// if we are trying to access "wss" scheme and we don't have sslEngineConfigurator instance
// we should try to create ssl connection using JVM properties.
if (uri.getScheme().equalsIgnoreCase("wss") && sslEngineConfigurator == null) {
SSLContextConfigurator defaultConfig = new SSLContextConfigurator();
defaultConfig.retrieve(System.getProperties());
sslEngineConfigurator = new SSLEngineConfigurator(defaultConfig, true, false, false);
}
try {
this.clientSSLEngineConfigurator = sslEngineConfigurator;