code: protected void initMessageObject() {
  
          try {
              if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
                  // create a new message info object
                  m_msgInfo = new CmsMessageInfo();
              } else {
                  // this is not the initial call, get the message info object from session
                  m_msgInfo = (CmsMessageInfo)getDialogObject();
              }
          } catch (Exception e) {
              // create a new message info object
              m_msgInfo = new CmsMessageInfo();
          }
          m_msgInfo.setFrom(getCms().getRequestContext().getCurrentUser().getFullName());
          m_msgInfo.setTo(getToNames());
      }
docs: Initializes the message info object to work with depending on the dialog state and request parameters.<p>