// the following directory must exist for image references
String imageDirectory = "c:/temp/dump/WikiDumpImages";
System.out.println("Prepare wiki database");
db = prepareDB(mainDirectory);
IArticleFilter handler;
WikiXMLParser wxp;
if (!skipFirstPass) {
System.out.println("First pass - write templates to database:");
handler = new DemoTemplateArticleFilter(db);
wxp = new WikiXMLParser(bz2Filename, handler);