{
for (Iterator iterator = getSortedNameSpaces().iterator(); iterator.hasNext(); ) {
currentNamespace = (String) iterator.next();
try {
TemplateTagHandler th = TemplateEngine.getEngineInstance().getTagHandlerFor(currentNamespace);
setCurrentClass(getXJavaDoc().getXClass(th.getClass().getName()));
generate(template);
}
catch (TemplateException e) {
throw new XDocletException(e, "Error getting tag handler");