json.putObject("policies", policiesJson);
if (policies != null) {
LoadBalancingPolicy lbPolicy = policies.getLoadBalancingPolicy();
policiesJson.putString("load_balancing", lbPolicy == null ? null : lbPolicy.getClass().getSimpleName());
ReconnectionPolicy reconnectionPolicy = policies.getReconnectionPolicy();
policiesJson.putString("reconnection", reconnectionPolicy == null ? null : reconnectionPolicy.getClass().getSimpleName());
RetryPolicy retryPolicy = policies.getRetryPolicy();
policiesJson.putString("retry", retryPolicy == null ? null : retryPolicy.getClass().getSimpleName());
}
PoolingOptions poolingOptions = configuration.getPoolingOptions();