if(null==is)
throw new IllegalStateException("Failed to load proxy configuration: "+configResource);
try {
PropertyResourceBundle bundle = new PropertyResourceBundle(is);
HashMap<String, Object> serviceConfig = new HashMap<String, Object>();
serviceConfig.put(ProxyConfig.ID, "default");
serviceConfig.put(ProxyConfig.URL, bundle.getString("service.url"));
serviceConfig.put(ProxyConfig.PASSTHROUGH, Boolean.valueOf(bundle.getString("service.passthrough")));
services.add(serviceConfig);
} catch (IOException e) {
throw new RuntimeException("Failed to load proxy configuration");