}
private final List <TreeNode> loadTreeNodes(CubeViewController cvc, String hierarchyId, String viewId, String axisId, int level) {
List<TreeNode> nodes = new ArrayList<TreeNode>();
Axis axis = cvc.getCubeView().getAxis(axisId);
AxisHierarchy axisHierarchy = axis.getAxisHierarchy(hierarchyId);
if(axisHierarchy != null) {
ElementNode [] rootNodes = axisHierarchy.getRootNodes();
HashMap<ElementNode, TreeNode> parents = new HashMap<ElementNode, TreeNode>();
for (ElementNode rootElement: rootNodes) {
XElementNode xRoot = XElementFactory.createX(rootElement, hierarchyId, viewId);