#access_admin()
#set ($obj = $profiles)
#set ($module = "profiles")
#set ($r = $obj.load($params.key))
#if ($obj.load($params.name))
Error: $params.name already exists
#else
$obj.rename($params.name)
$response.sendRedirect("$root/$module/index.vm")
#end
