public function deleteTeam()
 {
     $team_id = (int) $this->request->param('TEAM_ID');
     try {
         $this->team_manager->removeTeam($team_id);
         return $this->deleted();
     } catch (EntityValidationException $ex2) {
         SS_Log::log($ex2, SS_Log::NOTICE);
         return $this->validationError($ex2->getMessages());
     } catch (NotFoundEntityException $ex3) {
         SS_Log::log($ex3, SS_Log::NOTICE);
         return $this->validationError(array(array('attribute' => 'error', 'message' => 'Team does not exist on Company!')));
     } catch (Exception $ex) {
         SS_Log::log($ex, SS_Log::ERR);
         return $this->serverError();
     }
 }