//just an helper function to wrap a normal sslSocket into a simulated one so we can do throttling
private Socket createSimulatedSocket(SSLSocket socket) {
SimulatedSocketFactory.configure(socket);
socket.setEnabledProtocols(new String[] { SSLAlgorithm.SSLv3.name(), SSLAlgorithm.TLSv1.name() } );
//socket.setEnabledCipherSuites(new String[] { "SSL_RSA_WITH_RC4_128_MD5" });
return new SimulatedSSLSocket(socket, streamManager);
}