/**
  * Helper method to handle generic properties like setRequired(), setInfo()
  * 
  * @param ilFormPropertyGUI $a_field
  * @param ilADTDefinition $a_def
  */
 protected function addBasicFieldProperties(ilFormPropertyGUI $a_field, ilADTDefinition $a_def)
 {
     if ((bool) $this->isDisabled()) {
         $a_field->setDisabled(true);
     } else {
         if ($this->isRequired()) {
             $a_field->setRequired(true);
         }
     }
     $info = $this->getInfo();
     if ($info) {
         $a_field->setInfo($info);
     }
 }