code: public void setTo(String to) {
          try {
              this.to = new URI(to);
          } catch (URISyntaxException e) {
              throw new CitrusRuntimeException("Invalid to uri", e);
          }
      }
docs: Sets the to uri by string.
  @param to the to to set