extract getHttpClientBuilder to be more flexible