+ if (pg == null) {
+ pg = new Progress(0, urls.size());
+ } else {
+ pg.setMinMax(0, urls.size());
+ }
+
+ int i = 1;
+ for (Entry<String, URL> entry : urls) {
+ // to help with the retry and the originalUrl
+ refresh(entry.getValue().toString());
+ pg.setProgress(i++);
+ }
+