XMLEventReader reader,
QName seqElementType,
long bound,
XmlSchemaObject schemaType)
throws java.lang.Exception {
XmlSchemaElement el = CorbaHandlerUtils.getXmlSchemaSequenceElement(schemaType, serviceInfo);
QName name = obj.getName();
QName elementName = el.getQName();
if (!CorbaUtils.isElementFormQualified(serviceInfo, name.getNamespaceURI())) {
elementName = new QName("", elementName.getLocalPart());
}
CorbaObjectHandler elementObj =
CorbaHandlerUtils.initializeObjectHandler(orb,
elementName,
seqElementType,
typeMaps,
serviceInfo);
obj.setTemplateElement(elementObj);
boolean nestedSequence = isNestedSequence(seqElementType);
if (bound == 0) {
LOG.log(Level.INFO, "Unbounded sequence found");
XMLEvent event = reader.peek();
while (event.getEventType() == XMLStreamConstants.START_ELEMENT) {
StartElement startEl = (StartElement) event;
//REVISIT, check if qualified or unqualified
if (startEl.getName().equals(el.getQName())) {
if (nestedSequence) {
reader.nextEvent().asStartElement();
}
} else {
break;