protected function createEntityForm(Request $request = NULL)
    {
        $form = $this->createForm($this->type, $this->entity);

        return $request ? $form->handleRequest($request) : $form;
    }