public function addManualSubCorpusCxn($data)
 {
     $transaction = $this->beginTransaction();
     try {
         $entity = Base::createEntity('SC', 'sco_manually-added');
         $this->setName('manually-added');
         $this->setRank(0);
         $this->setIdEntity($entity->getId());
         $this->save();
         $cxn = Construction::create($data->idConstruction);
         Base::createEntityRelation($cxn->getIdEntity(), 'rel_hassubcorpus', $this->getIdEntity());
         $annotationSet = new AnnotationSet();
         $annotationSet->setIdSubCorpus($this->getId());
         $annotationSet->setIdSentence($data->idSentence);
         $annotationSet->setIdAnnotationStatus('ast_manual');
         $annotationSet->save();
         $annotationSet->createLayersForCxn($cxn, $data);
         $transaction->commit();
     } catch (\Exception $ex) {
         $transaction->rollback();
         throw new \Exception($ex->getMessage());
     }
 }