try {
// Connect
final GeonetHttpRequestFactory requestFactory = context.getBean(GeonetHttpRequestFactory.class);
final ClientHttpResponse httpResponse = requestFactory.execute(req, new Function<HttpClientBuilder, Void>() {
@Nullable
@Override
public Void apply(@Nullable HttpClientBuilder input) {
// set proxy from settings manager
Lib.net.setupProxy(context, input);