@Override
  @Nullable
  public XPathFunction resolve() {
    final Reference reference = getReference();
    return reference != null ? reference.resolve() : null;
  }
@Override
  @Nullable
  public XPathFunction resolve()