while (!reader.isStartElement() && !reader.isEndElement())
reader.next();
if (reader.isStartElement()){
// A start element we are not expecting indicates a trailing invalid property
throw new ADBException("Unexpected subelement " + reader.getLocalName());
}
} catch (XMLStreamException e) {
throw new Exception("Exception while parsing array",e);
}