return property;
}
private Property buildChoiceProperty(TypeInfo info, JavaClass cls, JavaHasAnnotations javaHasAnnotations, String propertyName, JavaClass propertyType){
ChoiceProperty property = new ChoiceProperty(helper);
XmlElements xmlElements = (XmlElements) helper.getAnnotation(javaHasAnnotations, XmlElements.class);
XmlElement[] elements = xmlElements.value();
ArrayList<Property> choiceProperties = new ArrayList<Property>(elements.length);
boolean isIdRef = helper.isAnnotationPresent(javaHasAnnotations, XmlIDREF.class);
property.setIsXmlIdRef(isIdRef);
validateElementIsInPropOrder(info, propertyName);
for (int i = 0; i < elements.length; i++) {