private void migrateConnectionPool(NetworkConfig config, HttpService httpService) throws TransactionFailure { final ConnectionPool pool = httpService.getConnectionPool(); if (pool == null) { return; } /* final Transport transport = (Transport) ConfigSupport.apply(new SingleConfigCode<Transports>() { @Override public Object run(Transports param) throws TransactionFailure { final Transport transport = param.createChild(Transport.class); param.getTransport().add(transport); transport.setMaxConnectionsCount(pool.getMaxPendingCount()); transport.setName("tcp"); return transport; } }, getTransports(config)); updateNetworkListener(config, transport); */ updateHttp(config, pool); updateThreadPool(config, pool); ConfigSupport.apply(new SingleConfigCode<HttpService>() { @Override public Object run(HttpService param) throws PropertyVetoException { param.setConnectionPool(null); return null; } }, httpService); }