CommandEnvironment httpProxyEnvironment = null;
public CommandEnvironment getHttpProxyEnvironment(OpsTarget target, Usage usage, URI uri) throws OpsException {
if (httpProxyEnvironment == null) {
List<String> proxies = findHttpProxies(target, uri);
httpProxyEnvironment = new CommandEnvironment();
String proxy = chooseProxy(target, proxies);
if (proxy != null) {
log.info("Will use http proxy: " + proxy);
httpProxyEnvironment.put("http_proxy", proxy);