class HttpClientChooser {

    public CloseableHttpClient chooseClient() {
        if (isRequestToSign()) {
            return clientWithCertificate;
        } else {
            return clientWithoutCertificate;
        }
    }

      HttpClientChooser(CloseableHttpClient clientWithoutCertificate, CloseableHttpClient clientWithCertificate);

}