public Text setText(String str) {
    String reason;

    if (str == null) {
      value = "";
      return this;
    }

    if ((reason = Verifier.checkCharacterData(str)) != null) {
      throw new IllegalDataException(str, "character content", reason);
    }
    value = str;
    return this;
  }
public Text setText(String str)