public function generate($target, $type = 'post') {
    
    $form = new \Pegase\Extension\Form\Objects\Form(
      $target,
      $this->sm->get('pegase.security.token_csrf_container'), 
      $type);
    
    return $form;
  }