public function copyToAvailableAction()
{
$translator = \Zend_Registry::get('container')->getService('translator');
try {
$theme = $this->getThemeService()->getById($this->_getParam('theme-id'));
$this->getThemeService()->copyToUnassigned($theme);
$this->view->response = $translator->trans('Copied successfully', array(), 'themes');
} catch (DuplicateNameException $e) {
$this->view->exception = array('code' => $e->getCode(), 'message' => $translator->trans('Duplicate assignment', array(), 'themes'));
} catch (\Exception $e) {
$this->view->exception = array('code' => $e->getCode(), 'message' => $translator->trans('Something broke', array(), 'themes'));
}
}