protected function getApplicationData(SubmissionEntity $submission)
 {
     $applicationData = new ApplicationData();
     $AppReferrer = $submission->getLead()->getReferrer();
     $DisplayFields = $this->getDisplayFields($submission);
     $applicationData->setAppReferrer($AppReferrer);
     $applicationData->setDisplayFields($DisplayFields);
     return $applicationData;
 }
 protected function getApplicationData(Lead $lead, $options = [])
 {
     $applicationData = new ApplicationData();
     $AppReferrer = isset($options['AppReferrer']) ? $options['AppReferrer'] : false;
     $Licenses = $this->getLicenses($lead);
     $DisplayFields = $this->getDisplayFields($lead);
     if (!empty($AppReferrer)) {
         $applicationData->setAppReferrer($AppReferrer);
     }
     $applicationData->setLicenses($Licenses);
     $applicationData->setDisplayFields($DisplayFields);
     return $applicationData;
 }