templateFile.setPackage(pkg);
templateFile.setName(name);
root.getReferences().add(templateFile);
BasicJavadocParser parser = new BasicJavadocParser(getSemanticTagHandlers());
parser.findJavadocTagsInTextFile(file, this, factory, root, new IJavadocReferenceCreator() {
public JavaElement createReference(String[] lines, int line) {
Template ref = createTemplate(factory, line, lines);
if (ref != null) {
templateFile.getTemplates().add(ref);