JClass fieldType = (JClass) field.getRawType();
CPropertyInfo fieldPropertyInfo = field.getPropertyInfo();
// For example, XSD attributes (PropertyKind.ATTRIBUTE) are always simple types:
if (!(fieldPropertyInfo.kind() == PropertyKind.ELEMENT || fieldPropertyInfo.kind() == PropertyKind.REFERENCE)) {
continue;
}
String fieldName = fieldPropertyInfo.getName(false);