code: function (oModules) {
  			var oHierarchy = {},
  				oTree = {
  					text: "All"
  				},
  				iSelectionDepth;
  
  			this.modulesToHierarchy(oModules, oHierarchy);
  
  			iSelectionDepth = this.setTreeNode(oHierarchy, oTree, 0, window["sap-ui-debug"] === true);
  			if (!iSelectionDepth) {
  				iSelectionDepth = 0;
  			}
  
  			return {
  				tree: oTree,
  				depth: iSelectionDepth
  			};
  		}
docs: Converts a module hierarchy to a bindable tree model structure
  The returning object contains the tree structure and depth of the deepest selected node
  @param {object} oModules Flat object of modules
  @return {{tree: {text: string}, depth: number}} The resulting tree and the depth