wikiUser.login();
// set up a simple cache for this example. HashMap is not usable for
// production! Use something like http://ehcache.org for production!
Map<String, String> contentCache = new HashMap<String, String>(2000);
APIWikiModelInMemory wikiModel = new APIWikiModelInMemory(wikiUser, Locale.ENGLISH, "${image}", "${title}", contentCache);
DocumentCreator documentCreator = new DocumentCreator(wikiModel, wikiUser, new String[0]);
wikiModel.setUp();
StringWriter writer = new StringWriter();
documentCreator.render(articleWikiContent, articleAddress, new HTMLConverter(), writer);
String wikiHTMLText = writer.toString();