addToResponse("<span class=\"meta\">Updating imported content...</span><span class=\"meta\">");
new WikiImportingTraverser(wikiImporter, page).traverse(new TraversalListener<Object>() {
@Override
public void process(Object pageOrError) {
if (pageOrError instanceof ImportError) {
ImportError error = (ImportError) pageOrError;
addToResponse(" " + error.toString() + ".");
}
}
});
addToResponse(" Done.");
// Refresh data, since it might have changed.