List<Proxy> parseProxies(MaxmlMap map) {
List<Proxy> list = new ArrayList<Proxy>();
if (map.containsKey("proxies")) {
List<MaxmlMap> values = (List<MaxmlMap>) map.get("proxies");
for (MaxmlMap definition : values) {
Proxy proxy = new Proxy();
proxy.id = definition.getString("id", "");
proxy.active = definition.getBoolean("active", true);
proxy.protocol = definition.getString("protocol", "http");
proxy.host = definition.getString("host", "");
proxy.port = definition.getInt("port", 80);