private RESTConfig getRESTConfig(final String endpoint) { final String proxyHost = cfg.getProxyHost(); final int proxyPort = cfg.getProxyPort(); final boolean trustAllCerts = cfg.getTrustAllCerts(); return new RESTConfig(endpoint, proxyHost, proxyPort, trustAllCerts); }