private static String itemType(MappingElement mappingElement, QName qName) {
String localPart = qName.getLocalPart();
for (Iterator<?> childIterator = mappingElement.childIterator(); childIterator.hasNext();) {
Object child = childIterator.next();
if (child instanceof ValueElement) {
ValueElement valueElement = (ValueElement)child;
if (localPart.equals(valueElement.getName())) {
return valueElement.getDeclaredType();
}
}
// TODO
/*
* else if (child instanceof ) { .. } else if () { .. }