*/
public static void printStackTrace(PrintStream out, XPathContext context) {
Iterator iterator = new ContextStackIterator(context);
while (iterator.hasNext()) {
ContextStackFrame frame = (ContextStackFrame)iterator.next();
if (frame == null) {
break;
}
frame.print(out);
}
}