public void setFrom(JID from) { element.addAttribute("from", from.toString());
public void setFrom(String from) { element.addAttribute("from", from);
    public void setFrom(JID from) {        element.addAttribute("from", from.toString());    }