protected function resolveIdAndNameByModel(RedBeanModel $model)
 {
     $existingContact = null;
     if (!isset($this->modelDerivationPathToItemFromContact)) {
         $this->modelDerivationPathToItemFromContact = RuntimeUtil::getModelDerivationPathToItem('Contact');
     }
     try {
         $contact = $model->castDown(array($this->modelDerivationPathToItemFromContact));
         if (get_class($contact) == 'Contact') {
             $existingContact = array('id' => Meeting::CONTACT_ATTENDEE_PREFIX . $contact->id, 'name' => self::renderHtmlContentLabelFromContactAndKeyword($contact, null));
         }
     } catch (NotFoundException $e) {
         //do nothing
     }
     return $existingContact;
 }