I assume, Generate HTML task, is not reading(in the java code) controllers attached to the site/ page, its just majorly converting XML to HTML as per XSL instructions.