List<Object> listOfElementsToWrite = new ArrayList<Object>();
if (sbase instanceof Model) {
QualitativeModel modelGE = (QualitativeModel) ((Model) sbase).getExtension(QualConstants.namespaceURI);
Enumeration<TreeNode> children = modelGE.children();
while (children.hasMoreElements()) {
listOfElementsToWrite.add(children.nextElement());
}
}