public function copyAction()
{
$documentId = $this->getRouteMatch()->getParam('id');
if (empty($documentId)) {
return $this->returnJson(array('success' => false));
}
$session = $this->getSession();
if (!empty($session['document-cut'])) {
unset($session['document-cut']);
}
$session['document-copy'] = $documentId;
return $this->returnJson(array('success' => true));
}