@Override
public void initConnectionManager() throws Exception {
final Registry<SchemeIOSessionFactory> schemereg = RegistryBuilder.<SchemeIOSessionFactory>create()
.register("http", PlainIOSessionFactory.INSTANCE)
.register("https", new SSLIOSessionFactory(SSLTestContexts.createClientSSLContext()))
.build();
this.clientIOReactor = new DefaultConnectingIOReactor(this.clientReactorConfig);
this.connMgr = new PoolingNHttpClientConnectionManager(this.clientIOReactor, schemereg);
}