singleLeaf.setSingle(true);
rootN.addChild(singleLeaf);
Leaf restrictedLeaf = new Leaf();
restrictedLeaf.setName("IntRange 0-10");
IntRangeScale range = new IntRangeScale();
range.setLowerBound(0);
range.setUpperBound(10);
restrictedLeaf.changeScale(range);
rootN.addChild(restrictedLeaf);
q.getTree().setRoot(rootN);