docs: public int convertExternalToInternal(Object recordOwner)
      {
          String strMessage = (String)this.getRawData();
          strMessage = this.stripHtmlTags((String)strMessage);
          Map<String,Object> map = this.getEMailParams(strMessage);
          this.moveHeaderParams(map, ((TrxMessageHeader)this.getMessage().getMessageHeader()).getMessageHeaderMap());
          
          String rootTag = BaseMessage.ROOT_TAG;
          if (this.getMessage() != null)
          	if (this.getMessage().getMessageDataDesc(null) != null)
          		if (this.getMessage().getMessageDataDesc(null).getKey() != null)
          			rootTag = this.getMessage().getMessageDataDesc(null).getKey();
          StringBuffer sb = new StringBuffer();
          Util.addStartTag(sb, rootTag);
          Util.addXMLMap(sb, map);
          Util.addEndTag(sb, rootTag);
          String strXML = sb.toString();
          if (this.getXSLTDocument() != null)
              strXML = this.transformMessage(strXML, null);    // Now use the XSLT document to convert this XSL document.
          boolean bSuccess = this.getMessage().setXML(strXML);
          return bSuccess ? DBConstants.NORMAL_RETURN : DBConstants.ERROR_RETURN;  
      }