protected function formGroupFactory()
    {
        if ($this->formGroupFactory === null) {
            throw new RuntimeException(sprintf(
                'Form Group Factory is not defined for "%s"',
                get_class($this)
            ));
        }

        return $this->formGroupFactory;
    }