* @return PlainText object representing article
* or null if exceptions occurred
*/
private MediaWikiText readArticle(String name) {
ContentAccessable content;
try {
content = bot.readContent(name);
} catch (ActionException e) {
return null;
} catch (ProcessException e) {
return null;
}
if ( content == null ) {
return null;
} else {
return new MediaWikiText(
content.getText(),
content.getTitle(),
"",
true,
currentURL);
}