publicGetters.put(key, method);
}
}
HashSet<String> elementLocalNames = new HashSet<String>();
for (Field field : getAllFields(contentClass)) {
XmlElementWrapper xmlElemWrapper = field.getAnnotation(XmlElementWrapper.class);
XmlElement xmlElem = field.getAnnotation(XmlElement.class);
XmlElementRef xmlElemRef = field.getAnnotation(XmlElementRef.class);
String fieldName = field.getName().toLowerCase();
String namespace = "";
String localName = field.getName();
if (xmlElemWrapper != null) {
namespace = xmlElemWrapper.namespace();
if (xmlElemWrapper.name() != null && !xmlElemWrapper.name().equals("")
&& !xmlElemWrapper.name().equals("##default")) {
localName = xmlElemWrapper.name();
}
}else if (xmlElem != null) {
namespace = xmlElem.namespace();
if (xmlElem.name() != null && !xmlElem.name().equals("")
&& !xmlElem.name().equals("##default")) {