Program: 85654
Project: 85654
Buggy source:
/** 
 * Create the instance of the   {@link XQueryExecutor}
 * @param element
 * @return
 */
public static final AbstractBeanDefinition getXQueryExecutor(Element element){
  BeanDefinitionBuilder builder=BeanDefinitionBuilder.genericBeanDefinition(XQueryExecutor.class);
  IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder,element,"String_Node_Str");
  IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder,element,"String_Node_Str","String_Node_Str");
  IntegrationNamespaceUtils.setValueIfAttributeDefined(builder,element,"String_Node_Str");
  NodeList list=element.getElementsByTagNameNS(element.getNamespaceURI(),"String_Node_Str");
  Attr xQueryAttribute=element.getAttributeNode("String_Node_Str");
  Attr xQueryResource=element.getAttributeNode("String_Node_Str");
  Assert.isTrue(!(xQueryAttribute != null && xQueryResource != null),"String_Node_Str");
  Assert.isTrue(!(xQueryAttribute != null && list != null && list.getLength() > 0),"String_Node_Str" + "String_Node_Str");
  Assert.isTrue(!(xQueryResource != null && list != null && list.getLength() > 0),"String_Node_Str" + "String_Node_Str");
  Assert.isTrue(xQueryResource != null || xQueryAttribute != null || (list != null && list.getLength() > 0),"String_Node_Str");
  if (xQueryResource != null) {
    String textContent=xQueryResource.getTextContent();
    Assert.isTrue(StringUtils.hasText(textContent),"String_Node_Str");
    Resource resource;
    if (textContent.startsWith(ResourceUtils.CLASSPATH_URL_PREFIX)) {
      resource=new ClassPathResource(textContent.substring(ResourceUtils.CLASSPATH_URL_PREFIX.length()));
    }
 else     if (textContent.startsWith(ResourceUtils.FILE_URL_PREFIX)) {
      resource=new FileSystemResource(textContent.substring(ResourceUtils.FILE_URL_PREFIX.length()));
    }
 else {
      resource=new ClassPathResource(textContent);
    }
    builder.addPropertyValue("String_Node_Str",resource);
  }
 else {
    String textContent;
    if (xQueryAttribute == null) {
      Assert.isTrue(list != null && list.getLength() == 1,"String_Node_Str");
      textContent=list.item(0).getTextContent();
    }
 else {
      textContent=xQueryAttribute.getTextContent();
    }
    if (StringUtils.hasText(textContent)) {
      builder.addPropertyValue("String_Node_Str",textContent.trim());
    }
  }
  NodeList parameters=element.getElementsByTagNameNS(element.getNamespaceURI(),"String_Node_Str");
  if (parameters != null && parameters.getLength() > 0) {
    ManagedList<AbstractBeanDefinition> params=new ManagedList<AbstractBeanDefinition>();
    for (int i=0; i < parameters.getLength(); i++) {
      Node node=parameters.item(i);
      NamedNodeMap attrs=node.getAttributes();
      Assert.isTrue(attrs.getLength() > 1,"String_Node_Str");
      Attr nameAttr=(Attr)attrs.getNamedItem("String_Node_Str");
      BeanDefinitionBuilder paramBuilder=BeanDefinitionBuilder.genericBeanDefinition(XQueryParameter.class);
      paramBuilder.addConstructorArgValue(nameAttr.getTextContent());
      Attr attr;
      if (attrs.getNamedItem("String_Node_Str") != null) {
        attr=(Attr)attrs.getNamedItem("String_Node_Str");
        paramBuilder.addPropertyValue("String_Node_Str",attr.getTextContent());
      }
 else       if (attrs.getNamedItem("String_Node_Str") != null) {
        attr=(Attr)attrs.getNamedItem("String_Node_Str");
        paramBuilder.addPropertyReference("String_Node_Str",attr.getTextContent());
      }
 else       if (attrs.getNamedItem("String_Node_Str") != null) {
        attr=(Attr)attrs.getNamedItem("String_Node_Str");
        paramBuilder.addPropertyValue("String_Node_Str",attr.getTextContent());
      }
      params.add(paramBuilder.getBeanDefinition());
    }
    builder.addPropertyValue("String_Node_Str",params);
  }
  return builder.getBeanDefinition();
}

Fixed version (ground truth):
/** 
 * Create the instance of the   {@link XQueryExecutor}
 * @param element
 * @return
 */
public static final AbstractBeanDefinition getXQueryExecutor(Element element){
  BeanDefinitionBuilder builder=BeanDefinitionBuilder.genericBeanDefinition(XQueryExecutor.class);
  IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder,element,"String_Node_Str");
  IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder,element,"String_Node_Str","String_Node_Str");
  IntegrationNamespaceUtils.setValueIfAttributeDefined(builder,element,"String_Node_Str");
  setXQueryInBuilder(element,builder);
  setXQueryParameters(element,builder);
  return builder.getBeanDefinition();
}