Line 450 will hit an NPE if node.getNodes() == null.
We probably want to LOG and return.