return createHttpClient(apiName, highAvailabilityStrategyType, configuration, true);
}
public static HttpClient<HttpRequest,ApacheHttpResponse> createHttpClient(String apiName, LoadBalancerStrategy.STRATEGY_TYPE highAvailabilityStrategyType, Configuration configuration, boolean enableLoadBalancing){
try {
HttpClient client = null;
if(highAvailabilityStrategyType == null){
client = new ApacheHttpClient(apiName, configuration, enableLoadBalancing);
}else{
client = new ApacheHttpClient(apiName, highAvailabilityStrategyType, configuration, enableLoadBalancing);
}