private function addCode($category = "main")
 {
     $code = new Codes();
     $code->setCodeCategory(strtolower($category));
     $code->setCode($this->cdata);
     if (substr($code->getCode(), 0, 4) != 'hash') {
         $this->staging->addRelated($code);
     }
 }