/**
  * @param Template $entity
  * @return Template
  */
 protected function beforeProcessEntity($entity)
 {
     if ($this->logger) {
         $this->logger->info('Syncing MailChimp Template [origin_id=' . $entity->getOriginId() . ']');
     }
     return parent::beforeProcessEntity($entity);
 }
 /**
  * Set EmailCampaign owner.
  *
  * @param Member $entity
  * @return Member|null
  */
 protected function afterProcessEntity($entity)
 {
     $this->assignMergeVarValues($entity);
     if ($this->isEntityProcessed($entity)) {
         return null;
     }
     return parent::afterProcessEntity($entity);
 }