private function GetSerializedForm(CBPActivity $rootActivity)
 {
     $buffer = $rootActivity->Save();
     if ($this->useGZipCompression) {
         $buffer = gzcompress($buffer, 9);
     }
     return $buffer;
 }