/**
  * Validates
  *
  * @param type $attributes
  * @param type $clearErrors
  * @return type
  */
 public function validate($attributes = null, $clearErrors = true)
 {
     if ($this->source != null) {
         if (!$this->source instanceof ContentAddonActiveRecord && !$this->source instanceof ContentActiveRecord) {
             $this->addError('object_model', Yii::t('base', 'Content Addon source must be instance of HActiveRecordContent or HActiveRecordContentAddon!'));
         }
     }
     return parent::validate($attributes, $clearErrors);
 }