XMLNameTransformer nsInfoXmlNameTransformer = packageInfo.getXmlNameTransformer();
if (nsInfoXmlNameTransformer != null) {
info.setXmlNameTransformer(nsInfoXmlNameTransformer);
} else if (helper.isAnnotationPresent(javaClass, XmlNameTransformer.class)) {
XmlNameTransformer nameTranformer = (XmlNameTransformer) helper.getAnnotation(javaClass, XmlNameTransformer.class);
Class nameTransformerClass = nameTranformer.value();
try {
info.setXmlNameTransformer((XMLNameTransformer) nameTransformerClass.newInstance());
} catch (InstantiationException ex) {
throw JAXBException.exceptionWithNameTransformerClass(nameTransformerClass.getName(), ex);
} catch (IllegalAccessException ex) {
throw JAXBException.exceptionWithNameTransformerClass(nameTransformerClass.getName(), ex);
}
} else if (helper.isAnnotationPresent(javaClass.getPackage(), XmlNameTransformer.class)) {
XmlNameTransformer nameTranformer = (XmlNameTransformer) helper.getAnnotation(javaClass.getPackage(), XmlNameTransformer.class);
Class nameTransformerClass = nameTranformer.value();
try {
info.setXmlNameTransformer((XMLNameTransformer) nameTransformerClass.newInstance());
} catch (InstantiationException ex) {
throw JAXBException.exceptionWithNameTransformerClass(nameTransformerClass.getName(), ex);
} catch (IllegalAccessException ex) {