public function handleFormView($template, $form, array $options = array())
    {
        $httpCode = isset($options['http_code']) ? $options['http_code']: 200;
        $parameters = isset($options['form_view']) ? $options['form_view']: array();
        $serializerGroup = isset($options['serializer_group']) ? $options['serializer_group']: 'api';

        return $form->isValid() ?
            $this->createSerialized($options['extra_parameters'], $serializerGroup):
            $this->createFormView($template, $form, $httpCode, $parameters);

    }