public function findAction()
 {
     $resources_data = array();
     if ($this->getRequest()->getParam("role_id")) {
         $role = new Acl_Model_Role();
         $role->find($this->getRequest()->getParam("role_id"));
         $resource = new Acl_Model_Resource();
         $role_resources = $resource->findResourcesByRole($this->getRequest()->getParam("role_id"));
         foreach ($role_resources as $role_resource) {
             $resources_data[] = $role_resource;
         }
         $data_title = $this->_("Edit %s role", $role->getCode());
         $role = array("id" => $role->getId(), "code" => $role->getCode(), "label" => $role->getLabel(), "default" => $role->isDefaultRole());
     } else {
         $data_title = $this->_("Create a new role");
         $role = array("code" => "", "label" => "");
     }
     $data = array("title" => $data_title, "role" => $role);
     $resource = new Acl_Model_Resource();
     $data["resources"] = $resource->getHierarchicalResources($resources_data);
     $this->_sendHtml($data);
 }