jibx.getCurrentStructure().setChoice(true);
jibx.getCurrentStructure().setOrdered(Boolean.FALSE.toString());
for(int i=0;i<cEvent.getElementEvents().size();i++) {
ElementEvent eEvent = (ElementEvent)cEvent.getElementEvents().get(i);
JibxStructure struct = jibx.addStructureToStructure(eEvent.getName(), null,
nsContext.getTypeNS(eEvent.getTypeQName()), eEvent.isNillable(), eEvent.isOptional());
struct.setNs(eEvent.getTypeQName().getNamespaceURI());
if(cEvent.isNillable()) struct.setType(eEvent.getJavaQName().toString());
}
}
}