private void loadModel(Model model) throws DocumentException {
FileSource fileSource = model.getDataModel().getFileSource();
if (fileSource!=null) {
document = parse(fileSource);
doc = new DocumentDom4j(document);
root = document.getRootElement();
rootElement = getRootElement(root);
//treeWalk (root);
treeWalkWithParent (root);
}