public function renderWidget($property, $ignoreErrors = false, PropertyValueBag $inputValues = null)
    {
        /** @var Widget $widget */
        $widget = $this->getWidget($property, $inputValues);
        if (!$widget) {
            throw new DcGeneralRuntimeException('No widget for property ' . $property);
        }

        $this->cleanErrors($widget, $ignoreErrors);
        $this->widgetAddError($property, $widget, $inputValues, $ignoreErrors);

        $propInfo = $this->getEnvironment()->getDataDefinition()->getPropertiesDefinition()->getProperty($property);
        $content  = (new ContaoBackendViewTemplate('dcbe_general_field'))
            ->set('strName', $property)
            ->set('strClass', $widget->tl_class)
            ->set('widget', $widget->parse())
            ->set('hasErrors', $widget->hasErrors())
            ->set('strDatepicker', $this->getDatePicker($propInfo->getExtra(), $widget))
            // We used the var blnUpdate before.
            ->set('blnUpdate', false)
            ->set('strHelp', $this->generateHelpText($property))
            ->set('strId', $widget->id)
            ->parse();

        return $this->loadRichTextEditor($content, $widget);
    }