private void constructInternalLinks(
List<Page> pages,
boolean convertTalkPages) throws APIException {
for (String dabList : elementNames) {
Page page = DataManager.getPage(getWikipedia(), dabList, null, null, null);
MediaWiki mw = MediaWiki.getMediaWikiAccess(this);
mw.retrieveAllLinks(getWikipedia(), page, null, null, true, true);
Iterator<Page> iter = page.getLinks().iterator();
while (iter.hasNext()) {
Page link = iter.next();
if (link != null) {
if (convertTalkPages && !link.isArticle()) {