for (Object o : map.getList("remoteRepositories", Collections.emptyList())) {
MaxmlMap repoMap = (MaxmlMap) o;
String id = repoMap.getString("id", null);
String url = repoMap.getString("url", null);
boolean allowSnapshots = repoMap.getBoolean("allowSnapshots", false);
RemoteRepository repo = new RemoteRepository(id, url, allowSnapshots);
repo.connectTimeout = repoMap.getInt("connectTimeout", repo.connectTimeout);
repo.readTimeout = repoMap.getInt("readTimeout", repo.readTimeout);
repo.username = repoMap.getString("username", null);
repo.password = repoMap.getString("password", null);
remotes.add(repo);