public function createForm(array $formOptions = [])
    {
        $defaults = $this->filterDefaults();

        $this->form = $this->formFactory->create(
            $this->formType,
            $defaults,
            $formOptions
        );
        if ($this->request) {
            $this->form->handleRequest($this->request);
        }

        return $this->form;
    }