Source:
protected GoodData(GoodDataEndpoint endpoint, Authentication authentication, GoodDataSettings settings) { httpClient = authentication.createHttpClient(endpoint, createHttpClientBuilder(settings)); restTemplate = createRestTemplate(endpoint, httpClient, settings.getRetrySettings()); accountService = new AccountService(getRestTemplate(), settings); projectService = new ProjectService(getRestTemplate(), accountService, settings); metadataService = new MetadataService(getRestTemplate(), settings); modelService = new ModelService(getRestTemplate(), settings); gdcService = new GdcService(getRestTemplate(), settings); exportService = new ExportService(getRestTemplate(), endpoint, settings); warehouseService = new WarehouseService(getRestTemplate(), settings); connectorService = new ConnectorService(getRestTemplate(), projectService, settings); notificationService = new NotificationService(getRestTemplate(), settings); exportImportService = new ExportImportService(getRestTemplate(), settings); featureFlagService = new FeatureFlagService(getRestTemplate(), settings); outputStageService = new OutputStageService(getRestTemplate(), settings); projectTemplateService = new ProjectTemplateService(getRestTemplate(), settings); auditEventService = new AuditEventService(getRestTemplate(), accountService, settings); executeAfmService = new ExecuteAfmService(getRestTemplate(), settings); lcmService = new LcmService(getRestTemplate(), settings); try { Class.forName("com.github.sardine.Sardine", false, getClass().getClassLoader()); dataStoreService = new DataStoreService(getHttpClient(), getRestTemplate(), gdcService, endpoint.toUri()); } catch (ClassNotFoundException e) { if (logger.isWarnEnabled()) { logger.warn("Optional dependency Sardine not found - WebDAV related operations are not supported"); } } datasetService = new DatasetService(getRestTemplate(), dataStoreService, settings); processService = new ProcessService(getRestTemplate(), accountService, dataStoreService, settings); }

Target:
protected GoodData(GoodDataEndpoint endpoint, Authentication authentication, GoodDataSettings settings) { httpClient = authentication.createHttpClient(endpoint, createHttpClientBuilder(settings)); restTemplate = createRestTemplate(endpoint, httpClient, settings.getRetrySettings()); accountService = new AccountService(getRestTemplate(), settings); projectService = new ProjectService(getRestTemplate(), accountService, settings); metadataService = new MetadataService(getRestTemplate(), settings); modelService = new ModelService(getRestTemplate(), settings); gdcService = new GdcService(getRestTemplate(), settings); exportService = new ExportService(getRestTemplate(), endpoint, settings); warehouseService = new WarehouseService(getRestTemplate(), settings); connectorService = new ConnectorService(getRestTemplate(), projectService, settings); notificationService = new NotificationService(getRestTemplate(), settings); exportImportService = new ExportImportService(getRestTemplate(), settings); featureFlagService = new FeatureFlagService(getRestTemplate(), settings); outputStageService = new OutputStageService(getRestTemplate(), settings); projectTemplateService = new ProjectTemplateService(getRestTemplate(), settings); auditEventService = new AuditEventService(getRestTemplate(), accountService, settings); executeAfmService = new ExecuteAfmService(getRestTemplate(), settings); lcmService = new LcmService(getRestTemplate(), settings); try { Class.forName("com.github.sardine.Sardine", false, getClass().getClassLoader()); dataStoreService = new DataStoreService(getHttpClient(), getRestTemplate(), gdcService, endpoint.toUri()); } catch (ClassNotFoundException e) { if (logger.isInfoEnabled()) { logger.info("Optional dependency Sardine not found - WebDAV related operations are not supported"); } } datasetService = new DatasetService(getRestTemplate(), dataStoreService, settings); processService = new ProcessService(getRestTemplate(), accountService, dataStoreService, settings); }