TxConstants.Service.DEFAULT_DATA_TX_CLIENT_PROVIDER);
ThriftClientProvider clientProvider;
if ("pool".equals(provider)) {
clientProvider = new PooledClientProvider(hConf, discoveryServiceClient);
} else if ("thread-local".equals(provider)) {
clientProvider = new ThreadLocalClientProvider(hConf, discoveryServiceClient);
} else {
String message = "Unknown Transaction Service Client Provider '" + provider + "'.";
LOG.error(message);
throw new IllegalArgumentException(message);
}