class SW360ConnectionConfigurationFactory {

    public SW360Connection createConnection(Getter<String> getConfigValue, HttpClient httpClient,
                                            ObjectMapper mapper) {
        String restUrl = getConfigValue.apply(REST_SERVER_URL_KEY);
        String authUrl = getConfigValue.apply(AUTH_SERVER_URL_KEY);
        String user = getConfigValue.apply(USERNAME_KEY);
        String password = getConfigValue.apply(PASSWORD_KEY);
        String clientId = getConfigValue.apply(CLIENT_USER_KEY);
        String clientPassword = getConfigValue.apply(CLIENT_PASSWORD_KEY);
        String token = getConfigValue.apply(TOKEN_KEY);

        SW360ClientConfig clientConfig =
                SW360ClientConfig.createConfig(restUrl, authUrl, user, password, clientId, clientPassword,
                        token, httpClient, mapper);
        return connectionFactory.newConnection(clientConfig);
    }

    public  SW360ConnectionConfigurationFactory();
      SW360ConnectionConfigurationFactory(SW360ConnectionFactory connectionFactory);

}