Sets custom tree node logos.
547391
@Override
	public Component getTreeCellRendererComponent(JTree tree, Object value,
			boolean sel, boolean expanded, boolean leaf, int row,
			boolean hasFocus) {

		component.removeAll();
		SiteNode node = null;
		if (value instanceof SiteNode) {
			node = (SiteNode) value;
		}
		
		if (node != null) {
	        if( node.isFiltered()) {
	        	// Hide the node
	            setPreferredSize( new Dimension(0, 0) );
	            return this;
	        }

			setPreferredSize(null);	// clears the preferred size, making the node visible
			super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);

			// folder / file icons with scope 'target' if relevant
			if (node.isRoot()) {
				component.add(wrap(ROOT_ICON)); // 'World' icon
			} else {
				OverlayIcon icon;
		        if (node.isDataDriven()) {
					if (node.isIncludedInScope() && ! node.isExcludedFromScope()) {
						icon = new OverlayIcon(DATA_DRIVEN_IN_SCOPE_ICON);
					} else {
						icon = new OverlayIcon(DATA_DRIVEN_ICON);
					}
		        } else if (leaf) {
					if (node.isIncludedInScope() && ! node.isExcludedFromScope()) {
						icon = new OverlayIcon(LEAF_IN_SCOPE_ICON);
					} else {
						icon = new OverlayIcon(LEAF_ICON);
					}
				} else {
					if  (expanded) {
						if (node.isIncludedInScope() && ! node.isExcludedFromScope()) {
							icon = new OverlayIcon(FOLDER_OPEN_IN_SCOPE_ICON);
						} else {
							icon = new OverlayIcon(FOLDER_OPEN_ICON);
						}
					} else {
						if (node.isIncludedInScope() && ! node.isExcludedFromScope()) {
							icon = new OverlayIcon(FOLDER_CLOSED_IN_SCOPE_ICON);
						} else {
							icon = new OverlayIcon(FOLDER_CLOSED_ICON);
						}
					}
				}
				if (node.getParent().isRoot() && node.getNodeName().startsWith("https://")) {
					// Add lock icon to site nodes with https
					icon.add(LOCK_OVERLAY_ICON);
				}
				
				component.add(wrap(DisplayUtils.getScaledIcon(icon)));
				
				Alert alert = node.getHighestAlert();
				if (alert != null) {
					component.add(wrap(alert.getIcon()));
				}

				for (ImageIcon ci : node.getCustomIcons()){
					component.add(wrap(DisplayUtils.getScaledIcon(ci)));
				}
				
			}
			setText(node.toString());
			setIcon(null);
			component.add(this);

	        for (SiteMapListener listener : listeners) {
	        	listener.onReturnNodeRendererComponent(this, leaf, node);
	        }
	        return component;
		}

		return this;
	}
338410
public void setNodes(java.util.Collection<Node> nodes) {
        if (nodes == null) {
            this.nodes = null;
            return;
        }

        this.nodes = new java.util.ArrayList<Node>(nodes);
    }
856909
function buildTree(tokens) {
  var items = _.map(tokens, function(token) {
    return tartan.utils.node.newStripe(token);
  });
  var isReflected = (tokens.length >= 2) && (tokens[0].isPivot);
  return tartan.utils.node.newRootBlock(items, isReflected);
}
1364720
public void setTree(CmsTree<CmsTreeItem> tree) {

        m_tree = tree;
        for (Widget widget : m_children) {
            if (widget instanceof CmsTreeItem) {
                ((CmsTreeItem)widget).setTree(tree);
            }
        }
    }
145290
def do_tree(self, line):
        """"""
        opts = self.TREE_OPTS
        line = line.split()
        _pattern = ""

        if not self.current:
            self._help_noontology()
            return

        if len(line) == 0:
            # default contextual behaviour [2016-03-01]
            line = ["classes"]

        if line[0] not in opts:
            self.help_tree()
            return

        elif line[0] == "classes":
            g = self.current['graph']
            if g.all_classes:
                g.printClassTree(showids=False, labels=False, showtype=True)
                self._print("----------------", "TIP")
            else:
                self._print("No classes available.")

        elif line[0] == "properties":
            g = self.current['graph']
            if g.all_properties:
                g.printPropertyTree(showids=False, labels=False, showtype=True)
            else:
                self._print("No properties available.")

        elif line[0] == "concepts":
            g = self.current['graph']
            if g.all_skos_concepts:
                g.printSkosTree(showids=False, labels=False, showtype=True)
            else:
                self._print("No concepts available.")

        else:  # should never arrive here
            pass
149925
public synchronized void setLogo(ImageIcon logo, boolean isCustom) {
		if (win == null) return;
		this.logo = new JLabel(logo);
		Dimension dim = new Dimension(logo.getIconWidth(), logo.getIconHeight());
		if (dim.width > 400) dim.width = 400;
		if (dim.height > 300) dim.height = 300;
		this.logo.setMaximumSize(dim);
		this.logo.setMinimumSize(dim);
		this.logo.setPreferredSize(dim);
		this.isCustomLogo = isCustom;
		update();
	}
1366862
public void buildSignature(XMLNode node, Content fieldDocTree) {
        fieldDocTree.addContent(
                writer.getSignature((FieldDoc) fields.get(currentFieldIndex)));
    }
166847
def AddLeafNodes(self, prefix, node):
    """"""
    if not node:
      self.AddPath(prefix)
    for name in node:
      child_path = prefix + '.' + name
      self.AddLeafNodes(child_path, node[name])
1080062
def draw_tree(node,
              child_iter=lambda n: n.children,
              text_str=str):
    """"""
    return LeftAligned(traverse=Traversal(get_text=text_str,
                                          get_children=child_iter),
                       draw=LegacyStyle())(node)
409097
protected void layout(TreeNode node) {
    if (node != null) {
      TreeNode child = node.child;

      while (child != null) {
        layout(child);
        child = child.next;
      }

      if (node.child != null) {
        attachParent(node, join(node));
      } else {
        layoutLeaf(node);
      }
    }
  }
559601
protected function initSiteTreeIcons()
    {
        foreach (ClassInfo::subclassesFor(SiteTree::class) as $class) {
            
            $icon = Config::inst()->get($class, 'icon');
            
            $path = ModuleResourceLoader::singleton()->resolvePath($icon);
            
            if ($path !== $icon) {
                
                $path = preg_replace('#^vendor/#i', 'resources/', $path);
                
                Config::modify()->set($class, 'icon', $path);
                
            }
            
        }
    }
810578
void printDotNodesAtLevel(PrintStream os, int levelToPrint, boolean detail, PrintMojo.PrintTreeOptions treeOptions) {
    if (getDepth() == levelToPrint) {
      printDotNode(os, detail, treeOptions);
      return;
    }

    assert (getDepth() < levelToPrint);

    if (leftChild != null) {
      leftChild.printDotNodesAtLevel(os, levelToPrint, detail, treeOptions);
    }
    if (rightChild != null) {
      rightChild.printDotNodesAtLevel(os, levelToPrint, detail, treeOptions);
    }
  }
1137088
def setAutoscaledNodeTypes(self, nodeTypes):
        
        self._spotBidsMap = {}
        self.nodeShapes = []
        self.nodeTypes = []
        for nodeTypeStr in nodeTypes:
            nodeBidTuple = nodeTypeStr.split(":")
            if len(nodeBidTuple) == 2:
                # This is a preemptable node type, with a spot bid
                nodeType, bid = nodeBidTuple
                self.nodeTypes.append(nodeType)
                self.nodeShapes.append(self.getNodeShape(nodeType, preemptable=True))
                self._spotBidsMap[nodeType] = bid
            else:
                self.nodeTypes.append(nodeTypeStr)
                self.nodeShapes.append(self.getNodeShape(nodeTypeStr, preemptable=False))
340515
def initGroupStyle(self, useIcons=True, columnCount=None):
        
        flags      = self.flags()
        if flags & QtCore.Qt.ItemIsSelectable:
            flags ^= QtCore.Qt.ItemIsSelectable
            self.setFlags(flags)
        
        if useIcons:
            ico        = QtGui.QIcon(resources.find('img/treeview/triangle_right.png'))
            expand_ico = QtGui.QIcon(resources.find('img/treeview/triangle_down.png'))
            
            self.setIcon(0, ico)
            self.setExpandedIcon(0, expand_ico)
        
        palette = QtGui.QApplication.palette()
        
        line_clr = palette.color(palette.Mid)
        base_clr = palette.color(palette.Button)
        text_clr = palette.color(palette.ButtonText)
        
        gradient = QtGui.QLinearGradient()
        
        gradient.setColorAt(0.00, line_clr)
        gradient.setColorAt(0.03, line_clr)
        gradient.setColorAt(0.04, base_clr.lighter(105))
        gradient.setColorAt(0.25, base_clr)
        gradient.setColorAt(0.96, base_clr.darker(105))
        gradient.setColorAt(0.97, line_clr)
        gradient.setColorAt(1.00, line_clr)
        
        h = self._fixedHeight
        if not h:
            h = self.sizeHint(0).height()
        if not h:
            h = 18
        
        gradient.setStart(0.0, 0.0)
        gradient.setFinalStop(0.0, h)
        
        brush = QtGui.QBrush(gradient)
        
        tree = self.treeWidget()
        columnCount = columnCount or (tree.columnCount() if tree else self.columnCount())

        for i in range(columnCount):
            self.setForeground(i, text_clr)
            self.setBackground(i, brush)
816020
private void createNodes(DefaultMutableTreeNode top) {

    // categories
    DefaultMutableTreeNode category;
    // leaves
    DefaultMutableTreeNode defaultMutableTreeNode;

    // Area
    category = new DefaultMutableTreeNode("Area Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("AreaChart01 - 3-Series", new AreaChart01().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("AreaChart02 - Null Y-Axis Data Points", new AreaChart02().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "AreaChart03 - Combination Area & Line Chart", new AreaChart03().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("AreaChart04 - Step Area Rendering", new AreaChart04().getChart()));
    category.add(defaultMutableTreeNode);

    // Pie
    category = new DefaultMutableTreeNode("Pie Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("PieChart01 - Pie Chart with 4 Slices", new PieChart01().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "PieChart02 - Pie Chart Custom Color Palette", new PieChart02().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("PieChart03 - Pie Chart GGPlot2 Theme", new PieChart03().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("PieChart04 - Pie Chart with Donut Style", new PieChart04().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "PieChart05 - Pie Chart with Donut Style and Sum", new PieChart05().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "PieChart06 - Pie Chart with Pie Style with Annotation LabelAndValue",
                new PieChart06().getChart()));
    category.add(defaultMutableTreeNode);

    // Line
    category = new DefaultMutableTreeNode("Line Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("LineChart01 -  Logarithmic Y-Axis", new LineChart01().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("LineChart02 - Customized Series Style", new LineChart02().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "LineChart03 - Extensive Chart Customization", new LineChart03().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "LineChart04 - Hundreds of Series on One Plot", new LineChart04().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "LineChart05 - Scatter and Line with Tool Tips", new LineChart05().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "LineChart06 - Logarithmic Y-Axis with Error Bars", new LineChart06().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "LineChart07 - Category Chart with Line Rendering", new LineChart07().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("LineChart08 - Step Rendering", new LineChart08().getChart()));
    category.add(defaultMutableTreeNode);

    // Scatter
    category = new DefaultMutableTreeNode("Scatter Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "ScatterChart01 - Gaussian Blob with Y Axis on Right",
                new ScatterChart01().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("ScatterChart02 - Logarithmic Data", new ScatterChart02().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("ScatterChart03 - Single Point", new ScatterChart03().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("ScatterChart04 - Error Bars", new ScatterChart04().getChart()));
    category.add(defaultMutableTreeNode);

    // Bar
    category = new DefaultMutableTreeNode("Bar Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart01 - Basic Bar Chart", new BarChart01().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart02 - Date Categories", new BarChart02().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart03 - Stacked Bar Chart", new BarChart03().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart04 - Missing Point in Series", new BarChart04().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart05 - GGPlot2 Theme", new BarChart05().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart06 - Histogram Overlapped", new BarChart06().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "BarChart07 - Histogram Not Overlapped with Tool Tips",
                new BarChart07().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart08 - Histogram with Error Bars", new BarChart08().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "BarChart09 - Category chart with Bar, Line and Scatter Series",
                new BarChart09().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "BarChart10 - Stepped Bars with Line Styling", new BarChart10().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart11 - Stacked Stepped Bars", new BarChart11().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BarChart12 - Stepped Bars Not Overlapped", new BarChart12().getChart()));
    category.add(defaultMutableTreeNode);

    // Radar
    category = new DefaultMutableTreeNode("Radar Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("RadarChart01 - Basic Radar Chart", new RadarChart01().getChart()));
    category.add(defaultMutableTreeNode);

    // Dial
    category = new DefaultMutableTreeNode("Dial Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("DialChart01 - Basic Dial Chart", new DialChart01().getChart()));
    category.add(defaultMutableTreeNode);

    // Stick
    category = new DefaultMutableTreeNode("Stick Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("StickChart01 - Basic Stick Chart", new StickChart01().getChart()));
    category.add(defaultMutableTreeNode);

    // Bubble
    category = new DefaultMutableTreeNode("Bubble Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("BubbleChart01 - Basic Bubble Chart", new BubbleChart01().getChart()));
    category.add(defaultMutableTreeNode);

    // OHLC
    category = new DefaultMutableTreeNode("OHLC Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("OHLCChart01 - HiLo rendering", new OHLCChart01().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("OHLCChart02 - Candle rendering", new OHLCChart02().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("OHLCChart03 - Candle with custom colors", new OHLCChart03().getChart()));
    category.add(defaultMutableTreeNode);

    // Theme
    category = new DefaultMutableTreeNode("Chart Themes");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("ThemeChart01 - Default XChart Theme", new ThemeChart01().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("ThemeChart02 - GGPlot2 Theme", new ThemeChart02().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("ThemeChart03 - Matlab Theme", new ThemeChart03().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("ThemeChart04 - My Custom Theme", new ThemeChart04().getChart()));
    category.add(defaultMutableTreeNode);

    // Date
    category = new DefaultMutableTreeNode("Date Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "DateChart01 - Millisecond Scale with Two Separate Y Axis Groups",
                new DateChart01().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("DateChart02 - Second Scale", new DateChart02().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "DateChart03 - Minute Scale with Two Separate Y Axis Groups",
                new DateChart03().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("DateChart04 - Hour Scale", new DateChart04().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("DateChart05 - Day Scale", new DateChart05().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("DateChart06 - Month Scale", new DateChart06().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("DateChart07 - Year Scale", new DateChart07().getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("DateChart08 - Rotated Tick Labels", new DateChart08().getChart()));
    category.add(defaultMutableTreeNode);

    // Real-time category
    category = new DefaultMutableTreeNode("Real-time Charts");
    top.add(category);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("RealtimeChart01 - Real-time XY Chart", realtimeChart01.getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("RealtimeChart02 - Real-time Pie Chart", realtimeChart02.getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "RealtimeChart03 - Real-time XY Chart with Error Bars",
                realtimeChart03.getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("RealtimeChart04 - Real-time Bubble Chart", realtimeChart04.getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo(
                "RealtimeChart05 - Real-time Category Chart", realtimeChart05.getChart()));
    category.add(defaultMutableTreeNode);

    defaultMutableTreeNode =
        new DefaultMutableTreeNode(
            new ChartInfo("RealtimeChart06 - Real-time OHLC Chart", realtimeChart06.getChart()));
    category.add(defaultMutableTreeNode);
  }
652177
@Override
  public void setChildren(Tree[] children) {
    if (children == null || children.length == 0) {
      this.children = ZERO_TGN_CHILDREN;
    } else {
      if (children instanceof TreeGraphNode[]) {
        this.children = (TreeGraphNode[]) children;
      } else {
        this.children = new TreeGraphNode[children.length];
        for (int i = 0; i < children.length; i++) {
          this.children[i] = (TreeGraphNode)children[i];
        }
      }
    }
  }
1291252
private void createNodePaths() {
    TreeTraverser<OWLClassContainer> traverser =
        new TreeTraverser<OWLClassContainer>() {
          @Override
          public Iterable<OWLClassContainer> children(OWLClassContainer container) {
            int count = 0;
            List<OWLClassContainer> containers = new ArrayList<>();
            for (OWLClass childClass : loader.getChildClass(container.getOwlClass())) {
              containers.add(
                  new OWLClassContainer(
                      childClass, constructNodePath(container.getNodePath(), count), false));
              count++;
            }
            return containers;
          }
        };

    OWLClass pseudoRootClass = loader.createClass(PSEUDO_ROOT_CLASS_LABEL, loader.getRootClasses());

    for (OWLClassContainer container :
        traverser.preOrderTraversal(
            new OWLClassContainer(pseudoRootClass, PSEUDO_ROOT_CLASS_NODEPATH, true))) {
      OWLClass ontologyTerm = container.getOwlClass();
      String ontologyTermNodePath = container.getNodePath();
      String ontologyTermIRI = ontologyTerm.getIRI().toString();
      OntologyTermNodePath nodePathEntity = createNodePathEntity(container, ontologyTermNodePath);
      nodePathsPerOntologyTerm.put(ontologyTermIRI, nodePathEntity);
    }
  }