public Object construct() {
try {
setText(GT._("Retrieving MediaWiki API"));
API api = APIFactory.getAPI();
setText(GT._("Retrieving templates"));
api.retrieveTemplates(getWikipedia(), page1);
setText(GT._("Retrieving links in templates"));
api.retrieveLinks(getWikipedia(), page1.getTemplates());
setText(GT._("Displaying templates found"));
for (Page p : page1.getTemplates()) {
boolean found = false;