code: public static boolean isSecure(IClientConfig config,
  			ServerIntrospector serverIntrospector, Server server) {
  		if (config != null) {
  			Boolean isSecure = config.get(CommonClientConfigKey.IsSecure);
  			if (isSecure != null) {
  				return isSecure;
  			}
  		}
  
  		return serverIntrospector.isSecure(server);
  	}
docs: Determine if client is secure. If the supplied {@link IClientConfig} has the
  {@link CommonClientConfigKey#IsSecure} set, return that value. Otherwise, query the
  supplied {@link ServerIntrospector}.
  @param config the supplied client configuration.
  @param serverIntrospector used to verify if the server provides secure connections
  @param server to verify
  @return true if the client is secure