public function changeMasterDocumentAction()
{
$doc = Model\Document::getById($this->getParam("id"));
if ($doc instanceof Model\Document\PageSnippet) {
$doc->setElements([]);
$doc->setContentMasterDocumentId($this->getParam("contentMasterDocumentPath"));
$doc->saveVersion();
}
$this->_helper->json(["success" => true]);
}