if(targetObj instanceof XmlSchemaElement) {
eEvent.setWrappedEvent(createNewElementEvent((XmlSchemaElement)targetObj));
} else if(targetObj instanceof XmlSchemaChoice) {
log.debug("Found wrapper of choice");
ChoiceEvent cEvent = createNewChoiceEvent((XmlSchemaChoice)targetObj);
cEvent.setWrapped(true);
cEvent.setNs(eEvent.getNs());
cEvent.setName(eEvent.getName());
cEvent.setNillable(eEvent.isNillable());
handler.foundElementsInChoice(cEvent);
return;
} else {
throw new RuntimeException(ClassUtils.simpleClassName(targetObj.getClass())+" not supported");