private void setPathDependency(final OnmsNode node, final OnmsNode parent) { if (node == null) return; OnmsIpInterface critIface = null; if (parent != null) { critIface = parent.getCriticalInterface(); } infof(this, "Setting criticalInterface of node: %s to: %s", node, critIface); node.setPathElement( critIface == null ? null : new PathElement(str(critIface.getIpAddress()), "ICMP")); }