Source:
<code>public DigipostClient(final DigipostClientConfig config, final ApiFlavor deliveryType, final String digipostUrl, final long senderAccountId, final Signer signer, final EventLogger eventLogger, final HttpClientBuilder clientBuilder, final ApiService overriddenApiService, final HttpHost proxy) { CryptoUtil.addBouncyCastleProviderAndVerify_AES256_CBC_Support(); HttpClientBuilder httpClientBuilder = clientBuilder == null ? DigipostHttpClientFactory.createBuilder(DigipostHttpClientSettings.DEFAULT) : clientBuilder; this.eventLogger = defaultIfNull(eventLogger, NOOP_EVENT_LOGGER); this.apiService = overriddenApiService == null ? new ApiServiceImpl(httpClientBuilder, senderAccountId, this.eventLogger, digipostUrl, proxy) : overriddenApiService; <START> this.messageSender = new MessageSender(config, apiService, this.eventLogger, new PdfValidator()); <END> this.deliverer = new MessageDeliverer(deliveryType, messageSender); this.documentCommunicator = new DocumentCommunicator(apiService, this.eventLogger); this.inboxCommunicator = new InboxCommunicator(apiService, this.eventLogger); this.responseSignatureInterceptor = new ResponseSignatureInterceptor(apiService); apiService.addFilter(new RequestDateInterceptor(this.eventLogger)); apiService.addFilter(new RequestUserAgentInterceptor()); apiService.addFilter(new RequestSignatureInterceptor(signer, this.eventLogger, new RequestContentSHA256Filter(this.eventLogger))); apiService.addFilter(responseDateInterceptor); apiService.addFilter(responseHashInterceptor); apiService.addFilter(responseSignatureInterceptor); apiService.buildApacheHttpClientBuilder(); log("Initialiserte apache-klient mot " + digipostUrl); }</code><technical_language>spaces > tabs</technical_language>

Target:
public DigipostClient(final DigipostClientConfig config, final ApiFlavor deliveryType, final String digipostUrl, final long senderAccountId, final Signer signer, final EventLogger eventLogger, final HttpClientBuilder clientBuilder, final ApiService overriddenApiService, final HttpHost proxy) { CryptoUtil.addBouncyCastleProviderAndVerify_AES256_CBC_Support(); HttpClientBuilder httpClientBuilder = clientBuilder == null ? DigipostHttpClientFactory.createBuilder(DigipostHttpClientSettings.DEFAULT) : clientBuilder; this.eventLogger = defaultIfNull(eventLogger, NOOP_EVENT_LOGGER); this.apiService = overriddenApiService == null ? new ApiServiceImpl(httpClientBuilder, senderAccountId, this.eventLogger, URI.create(digipostUrl), proxy) : overriddenApiService; this.messageSender = new MessageSender(config, apiService, this.eventLogger, new PdfValidator()); this.deliverer = new MessageDeliverer(deliveryType, messageSender); this.documentCommunicator = new DocumentCommunicator(apiService, this.eventLogger); this.inboxCommunicator = new InboxCommunicator(apiService, this.eventLogger); this.responseSignatureInterceptor = new ResponseSignatureInterceptor(apiService); apiService.addFilter(new RequestDateInterceptor(this.eventLogger)); apiService.addFilter(new RequestUserAgentInterceptor()); apiService.addFilter(new RequestSignatureInterceptor(signer, this.eventLogger, new RequestContentSHA256Filter(this.eventLogger))); apiService.addFilter(responseDateInterceptor); apiService.addFilter(responseHashInterceptor); apiService.addFilter(responseSignatureInterceptor); apiService.buildApacheHttpClientBuilder(); log("Initialiserte apache-klient mot " + digipostUrl); }