private function _set_messages()
 {
     if ($this->_type === 'activity_report') {
         $this->_messages['admin_or_agent_or_lender'] = !empty(self::$_options['email_template_user_activity']) ? self::$_options['email_template_user_activity'] : DispletRetsIdxEmailTemplatesModel::get_default_activity_report_message();
     } else {
         if ($this->_type === 'address_captured') {
             $this->_messages['admin_or_agent_or_lender'] = !empty(self::$_options['email_template_unregistered_address']) ? self::$_options['email_template_unregistered_address'] : DispletRetsIdxEmailTemplatesModel::get_default_unregistered_address_message();
         } else {
             if ($this->_type === 'assigned_lead') {
                 $this->_messages['admin_or_agent_or_lender'] = !empty(self::$_options['email_template_assigned_lead']) ? self::$_options['email_template_assigned_lead'] : DispletRetsIdxEmailTemplatesModel::get_default_assigned_lead_message();
             } else {
                 if ($this->_type === 'emailed_friend') {
                     $this->_messages['admin_or_agent_or_lender'] = !empty(self::$_options['email_template_email_friend_to_admin']) ? self::$_options['email_template_email_friend_to_admin'] : DispletRetsIdxEmailTemplatesModel::get_default_email_friend_message_to_admin();
                     $this->_messages['user_or_friend'] = !empty(self::$_options['email_template_email_friend_to_user']) ? self::$_options['email_template_email_friend_to_user'] : DispletRetsIdxEmailTemplatesModel::get_default_email_friend_message_to_user();
                 } else {
                     if ($this->_type === 'registration') {
                         $this->_messages['admin_or_agent_or_lender'] = !empty(self::$_options['email_template_new_registration_to_admin']) ? self::$_options['email_template_new_registration_to_admin'] : DispletRetsIdxEmailTemplatesModel::get_default_new_registration_message_to_admin();
                         $this->_messages['user_or_friend'] = !empty(self::$_options['email_template_new_registration_to_user']) ? self::$_options['email_template_new_registration_to_user'] : DispletRetsIdxEmailTemplatesModel::get_default_new_registration_message_to_user();
                     } else {
                         if ($this->_type === 'saved_property') {
                             $this->_messages['admin_or_agent_or_lender'] = !empty(self::$_options['email_template_saved_property_to_admin']) ? self::$_options['email_template_saved_property_to_admin'] : DispletRetsIdxEmailTemplatesModel::get_default_saved_property_message_to_admin();
                         } else {
                             if ($this->_type === 'saved_search') {
                                 $this->_messages['admin_or_agent_or_lender'] = !empty(self::$_options['email_template_saved_search_to_admin']) ? self::$_options['email_template_saved_search_to_admin'] : DispletRetsIdxEmailTemplatesModel::get_default_saved_search_message_to_admin();
                             } else {
                                 if ($this->_type === 'showing_request') {
                                     $this->_messages['admin_or_agent_or_lender'] = !empty(self::$_options['email_template_property_showing_to_admin']) ? self::$_options['email_template_property_showing_to_admin'] : DispletRetsIdxEmailTemplatesModel::get_default_property_showing_message_to_admin();
                                     $this->_messages['user_or_friend'] = !empty(self::$_options['email_template_property_showing_to_user']) ? self::$_options['email_template_property_showing_to_user'] : DispletRetsIdxEmailTemplatesModel::get_default_property_showing_message_to_user();
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }