// Iterate over the field and method properties. If ANYTHING contains an annotation and
// doesn't appear in the other list, add it to the final list
for (int i=0; i<fieldProperties.size(); i++) {
Property next = (Property) fieldProperties.get(i);
JavaHasAnnotations elem = next.getElement();
if (helper.isAnnotationPresent(elem, XmlElement.class)
|| helper.isAnnotationPresent(elem, XmlAttribute.class)
|| helper.isAnnotationPresent(elem, XmlAnyElement.class)
|| helper.isAnnotationPresent(elem, XmlAnyAttribute.class)
|| helper.isAnnotationPresent(elem, XmlValue.class)
|| helper.isAnnotationPresent(elem, XmlElements.class)) {
list.add(next);
}
}
for (int i=0; i<methodProperties.size(); i++) {
Property next = (Property) methodProperties.get(i);
JavaHasAnnotations elem = next.getElement();
if (helper.isAnnotationPresent(elem, XmlElement.class)
|| helper.isAnnotationPresent(elem, XmlAttribute.class)
|| helper.isAnnotationPresent(elem, XmlAnyElement.class)
|| helper.isAnnotationPresent(elem, XmlAnyAttribute.class)
|| helper.isAnnotationPresent(elem, XmlValue.class)