public void AddDynamicWebPart(
     WebPart webPart,
     Microsoft.Web.Preview.UI.Controls.WebParts.WebPartZone webPartZone,
     int zoneIndex, bool isShared)
 {
     if (!this.WebParts.Contains(webPart))
     {
         Internals.SetZoneID(webPart, webPartZone.ID);
         Internals.SetIsShared(webPart, isShared);
         Internals.SetZoneIndex(webPart, zoneIndex);
         Internals.AddWebPart(webPart);
         this.SetPersonalizationDirty();
     }
 }