@Override
  public final void accept(XPathElementVisitor visitor) {
    if (visitor instanceof XPath2ElementVisitor) {
      accept((XPath2ElementVisitor)visitor);
    } else {
      super.accept(visitor);
    }
  }
@Override
  public final void accept(XPathElementVisitor visitor)