protected function onBeforeWrite() {
        parent::onBeforeWrite();
        
        //If the title is not present make one from the translated singular name and the Kapost Reference ID
        $title=$this->Title;
        if(empty($title)) {
            $this->Title=$this->i18n_singular_name().': '.$this->KapostRefID;
        }
    }