final String prefix)
{
HttpProxyConfig httpProxyConfig = null;
if (configMap.containsKey(prefix + ".hostname")) {
httpProxyConfig = new HttpProxyConfig();
httpProxyConfig.withHostname((String) configMap.get(prefix + ".hostname"));
httpProxyConfig.withPort((Integer) configMap.get(prefix + ".port"));
httpProxyConfig.withAuthenticationConfig(authenticationFromMap(configMap, prefix));
}
return httpProxyConfig;
}