public function setup_metadata()
 {
     $mf = new DocmanWatermark_MetadataFactory();
     $md_id = $this->_controler->_actionParams['md_id'];
     $group_id = $this->_controler->_actionParams['group_id'];
     $wmd = new DocmanWatermark_Metadata();
     $wmd->setGroupId($group_id);
     $wmd->setId($md_id);
     $mf->setField($wmd);
 }
 /**
  * Private Method to copy the watermarkmetadata setup from the src project to target project
  * @param  int md_id: the metadata id to insert in the table plugin_docman_watermark_md_extension
  * @return void
  */
 private function copyWatermarkMetadata($md_id)
 {
     $dwmd = new DocmanWatermark_Metadata();
     $dwmd->setGroupId($this->targetProjectId);
     $dwmd->setId($md_id);
     $dwmf = new DocmanWatermark_MetadataFactory();
     $dwmf->setField($dwmd);
 }