List<Property> properties = wrapperDO.getInstanceProperties();
List<Object> elements = new ArrayList<Object>();
Type type = wrapperDO.getType();
if (type.isSequenced()) {
// Add values in the sequence
Sequence sequence = wrapperDO.getSequence();
for (int i = 0; i < sequence.size(); i++) {
// Skip mixed text
if (sequence.getProperty(i) != null) {
elements.add(sequence.getValue(i));
}
}
} else {
for (Property p : properties) {
Object child = wrapperDO.get(p);