subNode.addChild(leaf2);
CriteriaNode rootNode = new CriteriaNode();
rootNode.setName("rootNode");
rootNode.addChild(subNode);
rootNode.addChild(leaf3);
// create criteria-hierarchy
CriteriaHierarchy cHierarchy = new CriteriaHierarchy();
cHierarchy.setName("hierarchy");
cHierarchy.setCriteriaTreeRoot(rootNode);