private void EncryptElement(SendSecurityHeaderElement element)
        {
            string           id   = base.GenerateId();
            ISecurityElement item = this.CreateEncryptedData(CaptureSecurityElement(element.Item), id, true);

            this.referenceList.AddReferredId(id);
            element.Replace(id, item);
        }
 void EncryptElement(SendSecurityHeaderElement element)
 {
     string id = GenerateId();
     ISecurityElement encryptedElement = CreateEncryptedData(CaptureSecurityElement(element.Item), id, true);
     this.referenceList.AddReferredId(id);
     element.Replace(id, encryptedElement);
 }