code: @Deprecated
      public void setFrom(String from) {
          Jid jid;
          try {
              jid = JidCreate.from(from);
          }
          catch (XmppStringprepException e) {
              throw new IllegalArgumentException(e);
          }
          setFrom(jid);
      }
docs: Sets who the stanza is being sent "from". The XMPP protocol often
  makes the "from" attribute optional, so it does not always need to
  be set.
  
  @param from who the stanza is being sent to.
  @throws IllegalArgumentException if from is not a valid JID String.
  @deprecated use {@link #setFrom(Jid)} instead.