
String attrName, String defaultValue, boolean required) {
addProperty(builder, propertyName, element.getAttribute(attrName), defaultValue, required, true);</BUG>
}
<BUG>public static void addProperty(BeanDefinitionBuilder builder, String propertyName, Element element, String attrName,

String defaultValue, boolean required, boolean reference) {
Assert.notNull(element, "Element must not be null!");
Assert.hasText(attrName, "Attribute name must not be null!");
addProperty(builder, propertyName, element.getAttribute(attrName), defaultValue, required, reference);</BUG>
}

import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
public abstract class ParsingUtils {
public static void addOptionalPropertyReference(BeanDefinitionBuilder builder, String propertyName, Attr attribute) {
addProperty(builder, propertyName, attribute.getValue(), null, false, true);
