/**
  * save object
  * @access	public
  */
 function afterSave(ilObject $a_new_object)
 {
     // added by JP and moved here by BH
     // BH: why is the property not initialised with true within the object class per default .. ?
     $a_new_object->setPoolUsage(true);
     $tstdef = $this->getDidacticTemplateVar("tstdef");
     if ($tstdef) {
         $testDefaultsId = $tstdef;
         $testDefaults = ilObjTest::_getTestDefaults($testDefaultsId);
         $a_new_object->applyDefaults($testDefaults);
     }
     $template_id = $this->getDidacticTemplateVar("tsttpl");
     if ($template_id) {
         include_once "Services/Administration/classes/class.ilSettingsTemplate.php";
         $template = new ilSettingsTemplate($template_id, ilObjAssessmentFolderGUI::getSettingsTemplateConfig());
         $template_settings = $template->getSettings();
         if ($template_settings) {
             $this->applyTemplate($template_settings, $a_new_object);
         }
         $a_new_object->setTemplate($template_id);
     }
     $a_new_object->saveToDb();
     // always send a message
     ilUtil::sendSuccess($this->lng->txt("object_added"), true);
     ilUtil::redirect("ilias.php?baseClass=ilObjTestGUI&ref_id=" . $a_new_object->getRefId() . "&cmd=properties");
 }