protected function getWidgetClass($field)
    {
        $className = $GLOBALS[(TL_MODE == 'BE' ? 'BE_FFL' : 'TL_FFL')][$field['inputType']];

        if (($className !== '') && class_exists($className)) {
            return $className;
        }

        return null;
    }