obj = new CorbaUnionHandler(elName, idlType, tc, unionType);
// Build the entire union with all branches, etc. Then read info from the XML Event Reader
String branchName = null;
XMLEvent evt = reader.peek();
if (evt.isStartElement()) {
StartElement branchElement = evt.asStartElement();
branchName = branchElement.getName().getLocalPart();
}
List<Unionbranch> branches = unionType.getUnionbranch();
XmlSchemaObjectCollection items = choiceType.getItems();
for (int i = 0; i < branches.size(); i++) {