/// <summary>
        /// Publishes the Well book.
        /// </summary>
        /// <param name="rowId">The book id.</param>
        private void Publish(int rowId)
        {
            WellBookBLL objWellBook = new WellBookBLL();
            CommonBLL objCommonBLL = new CommonBLL();
            string strActionPerformed = string.Empty;
            string strAlertMessage = string.Empty;

            /// Validate the new book name is not already exists in DWB Books list
            if (!CheckDuplicateName(txtNewBookName.Text.Trim(), DWBTITLECOLUMN, DWBBOOKLIST))
            {
                PrintOptions objPrintOptions = new PrintOptions();
                objPrintOptions.IncludeStoryBoard = false;
                objPrintOptions.IncludePageTitle = true;
                objPrintOptions.IncludeBookTitle = true;
                objPrintOptions.IncludeTOC = true;
                System.Xml.XmlDocument objDWBBookXML = objWellBook.GenerateDWBBookXML(strParentSiteURL, rowId, BOOKACTIONPUBLISH, true,objPrintOptions);

                string strSiteURL = strParentSiteURL;
                SslRequiredWebPart objSslRequired = new SslRequiredWebPart();

                strSiteURL = objSslRequired.GetSslURL(strSiteURL);

                string strBookName = objDWBBookXML.DocumentElement.Attributes["BookName"].Value.ToString();
                string strRequestID = Guid.NewGuid().ToString();
                string strCurrentUser = GetUserName();
                string strLiveBookName = txtNewBookName.Text.Trim();
                UpdateDWBBookPrintDetails(strCurrentUser, strRequestID, strBookName, strLiveBookName, objDWBBookXML, rowId);
                TerminateLiveBook(rowId, DWBBOOKLIST);
                pnlPublishBook.Visible = false;
                strAlertMessage = objCommonBLL.GetAlertMessage(strParentSiteURL, "Publish");
                this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "documentprinted", "alert(' " + strAlertMessage + "');window.close();", true);
            }
            else
            {
                ExceptionBlock.Visible = true;
                lblException.Visible = true;
                lblException.Text = BOOKTITLEEXISTSMESSAGE;
            }
        }