ArrayList<Page> pageAndRedirects = new ArrayList<Page>();
pageAndRedirects.add(page);
for (Page backlink : page.getBackLinksWithRedirects()) {
if ((backlink != null) && (backlink.isRedirect())) {
pageAndRedirects.add(backlink);
mw.retrieveContents(getWikipedia(), backlink, false, false, false, false, false);
}
}
mw.retrieveDisambiguationInformation(getWikipedia(), pageAndRedirects, null, false, false, false);
mw.retrieveAllLinks(getWikipedia(), page, null, null, true, false);
} catch (APIException e) {