public Socket createSocket(Socket s, String host, int port,
boolean autoClose) throws IOException {
if (instantiationException != null) {
throw instantiationException;
}
return new SSLSocketWrapper(s, autoClose, (SSLParameters) sslParameters
.clone());
}