This is because I transformed XHTMLWikiPrinter into an interface implemented by DefaultXHTMLWikiPrinter