* the name of the new criteria hierarchy
* @return the new criteria hierarchy
*/
public CriteriaHierarchy createCriteriaHierarchy(String name) {
// Create a new hierarchy with a new root tree node and persist it.
CriteriaHierarchy hierarchy = new CriteriaHierarchy();
hierarchy.setName(name);
// Assign relevant data to criteria root node.
CriteriaNode rootNode = new CriteriaNode(planSelection.getSelectedPlans().size());
rootNode.setName(name);
rootNode.setNrOfRelevantPlans(planSelection.getSelectedPlans().size());
hierarchy.setCriteriaTreeRoot(rootNode);
em.persist(hierarchy);
log.debug("Created CriteriaHierarchy with name [{}].", name);
init();