@Override public void enter(NodeInfo node, Context arg1) { XSLTraceStep step = new XSLTraceStep(); step.start = System.nanoTime(); step.startInsNo = instructionCount; step.systemId = node.getSystemId(); step.lineNumber = node.getLineNumber(); step.displayName = node.getDisplayName(); if(currentStep != null) { step.parent = currentStep; if(currentStep.children == null) { currentStep.children = new ArrayList<>(); } currentStep.children.add(step); } currentStep = step; instructionCount++; }