public function objectbrickUpdateAction()
 {
     $fc = new Object_Objectbrick_Definition();
     $fc->setKey($this->_getParam("key"));
     if ($this->_getParam("values")) {
         $values = Zend_Json::decode($this->_getParam("values"));
         $fc->setParentClass($values["parentClass"]);
         $fc->setClassDefinitions($values["classDefinitions"]);
     }
     if ($this->_getParam("configuration")) {
         $configuration = Zend_Json::decode($this->_getParam("configuration"));
         $configuration["datatype"] = "layout";
         $configuration["fieldtype"] = "panel";
         $layout = Object_Class_Service::generateLayoutTreeFromArray($configuration);
         $fc->setLayoutDefinitions($layout);
     }
     $fc->save();
     $this->_helper->json(array("success" => true, "id" => $fc->getKey()));
 }