/**
  * Display job application form to applicant
  *
  * @param int $id Job Vacancy ID
  */
 public function showJobApplication($id)
 {
     $path = '/templates/recruitment/applicant/viewJobApplication.php';
     $objs['vacancy'] = JobVacancy::getJobVacancy($id);
     $countryinfo = new CountryInfo();
     $objs['countryList'] = $countryinfo->getCountryCodes();
     $genInfo = new GenInfo();
     $objs['company'] = $genInfo->getValue('COMPANY');
     $objs['retrySubmission'] = false;
     $extractor = new EXTRACTOR_JobApplication();
     if (isset($_GET['retrySubmission']) && $_GET['retrySubmission'] == 1) {
         $objs['savedData'] = $extractor->retrieveFromSession();
         $objs['retrySubmission'] = true;
     } else {
         $extractor->removeFromSession();
     }
     $template = new TemplateMerger($objs, $path);
     $template->display();
 }