public function render()
    {
        try{
            $output = '';

            $form = $this->resolve();

            $errors = $this->kernel->getErrors($this->form);

            $output = $this->kernel->render($form, $errors);

        } catch(\Exception $e){

            // todo log exception
            $output = '<error>'.$e->getMessage().'</error>';

        }

        return $output;
    }