public static XPathType mapType(XPathExpression context, XPathType type) {
    return context.getXPathVersion() == XPathVersion.V2 ? XPath2Type.mapType(type) : type;
  }
public static XPathType mapType(XPathExpression context, XPathType type)