@Override
  public boolean canBePromotedTo(XPathType type) {
    return super.canBePromotedTo(type) || getType().canBePromotedTo(unwrap(type));
  }
@Override
  public boolean canBePromotedTo(XPathType type)