/**
  * Indicates if the residential reference is applicable.
  *
  * @param string $enquiryId
  * The unique external Enquiry identifier.
  *
  * @return boolean
  * True if the reference is applicable, false otherwise.
  */
 public function getIsReferenceApplicable($enquiryId)
 {
     $enquiry = new Datasource_ReferencingLegacy_Enquiry();
     $legacyLandlordKey = $enquiry->getCurrentLandlordId($enquiryId);
     if (empty($legacyLandlordKey)) {
         $returnVal = false;
     } else {
         $returnVal = true;
     }
     return $returnVal;
 }
 /**
  * Retrieves the residential referee for a specific residence.
  *
  * @param string $enquiryId
  * The unique external Enquiry identifier.
  *
  * @return mixed
  * Returns a Model_Referencing_ResidentialReferee object, or null if no
  * referee is found.
  */
 public function getByEnquiry($enquiryId)
 {
     $enquiryDatasource = new Datasource_ReferencingLegacy_Enquiry();
     return $this->getResidentialReferee($enquiryDatasource->getCurrentLandlordId($enquiryId));
 }