}
  final void apply(Stylesheet stylesheet, QName mode,                   Node context, int pos, int len,                   Node parent, Node nextSibling)    throws TransformerException  {    if (stylesheet.terminated)      {        return;      }    if (Thread.currentThread().isInterrupted())      {        // Try to head off any infinite loops at the pass        return;      }    if (stylesheet.debug)      {        System.err.println("Applying " + toString());        System.err.println("\twith context=" + context + ", pos=" + pos +                           ", len=" + len);      }    doApply(stylesheet, mode, context, pos, len, parent, nextSibling);  }