do{
params.put("page", Integer.toString(page));
EntityList<WikiPage> wikiPages = wikiService.getWikiPages(wikiLabel, params);
for (Iterator<WikiPage> iter = wikiPages.iterator(); iter.hasNext();) {
JsonJavaObject wikiEntry = new JsonJavaObject();
WikiPage wikiPage = iter.next();
entityToJsonObject(wikiPage, AtomXPath.values(), wikiEntry);
entityToJsonObject(wikiPage, WikiXPath.values(), wikiEntry);
String pageHTML = wikiPage.getContent();
wikiEntry.put("content", pageHTML);
wikiEntry.putArray("pageImages", extractImagesFromWikiPage(pageHTML));
pagesArray.add(wikiEntry);
}