applyNamespace(element, namespace);
}
}
private void addConverter(TypeElement typeElement, List<org.jdom.Element> newConverters, Namespace namespace) {
Converter converterAnn = typeElement.getAnnotation(Converter.class);
org.jdom.Element converter = new org.jdom.Element(CONVERTER, namespace);
if (converterAnn.id().length() > 0) {
org.jdom.Element converterId = new org.jdom.Element(CONVERTER_ID, namespace);
converterId.setText(converterAnn.id());
converter.addContent(converterId);
} else if (converterAnn.forClass().length() > 0) {
org.jdom.Element converterForClass = new org.jdom.Element(CONVERTER_FOR_CLASS, namespace);
converterForClass.setText(converterAnn.forClass());
converter.addContent(converterForClass);
}
org.jdom.Element converterClass = new org.jdom.Element(CONVERTER_CLASS, namespace);
converterClass.setText(typeElement.getQualifiedName().toString());