protected function configureBooleanProperty($property, OptionsResolver $resolver)
    {
        $resolver
            ->setAllowedTypes($property, ['bool', 'string'])
            ->setAllowedValues($property, [true, false, 'true', 'false'])
            ->setNormalizer($property, function (Options $options, $value) {
                return is_bool($value) ? $value : ($value === 'true' ? true : false);
            });
    }