/** {@inheritDoc} */
  protected void doParse(
      Element configElement, ParserContext parserContext, BeanDefinitionBuilder builder) {
    super.doParse(configElement, parserContext, builder);

    List<Element> ruleElements =
        XMLHelper.getChildElementsByTagNameNS(
            configElement, BasicMatchFunctorNamespaceHandler.NAMESPACE, "Rule");

    builder.addConstructorArgValue(
        SpringConfigurationUtils.parseInnerCustomElement(ruleElements.get(0), parserContext));

    ruleElements =
        XMLHelper.getChildElementsByTagNameNS(
            configElement, BasicMatchFunctorNamespaceHandler.NAMESPACE, "RuleReference");
    if (!ruleElements.isEmpty()) {
      throw new BeanCreationException("RuleReference elements within a NOT rule are not supported");
    }
  }