public static MessagingRedirectLink toModel(MessagingRedirectLinkSoap soapModel) {
    MessagingRedirectLink model = new MessagingRedirectLinkImpl();

    model.setRedirectId(soapModel.getRedirectId());
    model.setLink(soapModel.getLink());
    model.setMessageId(soapModel.getMessageId());
    model.setCreateDate(soapModel.getCreateDate());

    return model;
  }
  public MessagingRedirectLink toEscapedModel() {
    if (isEscapedModel()) {
      return (MessagingRedirectLink) this;
    } else {
      MessagingRedirectLink model = new MessagingRedirectLinkImpl();

      model.setNew(isNew());
      model.setEscapedModel(true);

      model.setRedirectId(getRedirectId());
      model.setLink(HtmlUtil.escape(getLink()));
      model.setMessageId(getMessageId());
      model.setCreateDate(getCreateDate());

      model =
          (MessagingRedirectLink)
              Proxy.newProxyInstance(
                  MessagingRedirectLink.class.getClassLoader(),
                  new Class[] {MessagingRedirectLink.class},
                  new ReadOnlyBeanHandler(model));

      return model;
    }
  }