if (thing instanceof org.apache.ws.commons.schema.XmlSchemaChoice) {
XmlSchemaChoice choice = (XmlSchemaChoice) thing;
for (XmlSchemaObject xmlSchemaObject : choice.getItems()) {
ParticleInfo info = ParticleInfo.forLocalItem(xmlSchemaObject, xmlSchema, xmlSchemaCollection, prefixAccumulator, qName);
PhpProperty orig = createProperty(info);
properties.add(
new PhpProperty(
orig.getName(), new TypeHint(true, orig.getTypeHint().getName()), "null", Arrays.<String>asList(), false,
info.getType().getQName().getNamespaceURI()
)
);
}
// Only sort these, others are returned in jaxb order