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