APIWikiModel wikiModel = new APIWikiModel(user, db, "${image}", "${title}", imageDirectory);
DocumentCreator creator = new DocumentCreator(wikiModel, user, listOfTitleStrings);
// creator.setHeader(HTMLConstants.HTML_HEADER1 + HTMLConstants.CSS_SCREEN_STYLE + HTMLConstants.HTML_HEADER2);
// creator.setFooter(HTMLConstants.HTML_FOOTER);
wikiModel.setUp();
creator.renderToFile(new PlainTextConverter(), mainDirectory + titleURL + ".txt");
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e1) {
e1.printStackTrace();