protected void appendTag(ClassDeclaration decl, Element parent, Document document) {
Tag annotationTag = decl.getAnnotation(Tag.class);
checkDuplicates(annotationTag.name());
resetAttributeDuplicateList();
String className = decl.getQualifiedName();
TagGeneration tagGeneration = decl.getAnnotation(TagGeneration.class);
if (tagGeneration != null) {
className = tagGeneration.className();
}
Element tag = createTag(decl, annotationTag, className, document, false);
addAttributes(decl, tag, document);
parent.appendChild(tag);
if (annotationTag.deprecatedName() != null&&annotationTag.deprecatedName().length() > 0) {