/**
  * @param MarketingList $marketingList
  * @return StaticSegment
  */
 protected function getStaticSegmentByMarketingList(MarketingList $marketingList)
 {
     $staticSegment = $this->findStaticSegmentByMarketingList($marketingList);
     if (!$staticSegment) {
         $staticSegment = new StaticSegment();
         $staticSegment->setName(mb_substr($marketingList->getName(), 0, 100));
         $staticSegment->setSyncStatus(StaticSegment::STATUS_NOT_SYNCED);
         $staticSegment->setMarketingList($marketingList);
     }
     return $staticSegment;
 }