StartElement startEl = factory.createStartElement(objName, null, null);
writer.add(startEl);
}
writeObjectToStax(handler, el, writer, factory, true);
if (nestedSequence) {
EndElement endEl = factory.createEndElement(objName, null);
writer.add(endEl);
}
}
} else {
CorbaSequenceHandler seqHandler = (CorbaSequenceHandler) obj;
List<CorbaObjectHandler> elements = seqHandler.getElements();
byte[] value = new byte[elements.size()];
for (int i = 0; i < elements.size(); i++) {
CorbaPrimitiveHandler handler = (CorbaPrimitiveHandler) elements.get(i);
value[i] = ((Byte) handler.getValue()).byteValue();
}
Characters charEvt = factory.createCharacters(new String(value));
writer.add(charEvt);
}
if (isTopLevel) {
EndElement endEl = factory.createEndElement(name, null);
writer.add(endEl);
}
}