Program: 172221
Project: 172221
Buggy source:
/** 
 * Start Element
 */
public void startElement(String uri,String localName,String prefixName,Attributes atts) throws SAXException {
  QName elementQName=QName.resolveToQName(this,prefixName);
  HashMap<String,String> namespace=new HashMap<String,String>();
  namespaces.addFirst(namespace);
  for (int i=0; i < atts.getLength(); i++) {
    QName attributeQName=QName.resolveToQName(this,atts.getQName(i));
    if (attributeQName.getNamespaceURI().equals(XMLNS_URI)) {
      namespace.put(attributeQName.getLocalName(),atts.getValue(i));
    }
  }
  if (elementQName == null) {
    return;
  }
  if (elementQName.getNamespaceURI().equals(TRANSFER_URI))   ;
{
    String elementName=elementQName.getLocalName();
    if (elementName.equals(ManifestModel.LOCALNAME_TRANSFER_MAINIFEST)) {
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_TRANSFER_HEADER)) {
      TransferManifestHeader header=new TransferManifestHeader();
      props.put("String_Node_Str",header);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_DELETED_NODE)) {
      TransferManifestDeletedNode node=new TransferManifestDeletedNode();
      NodeRef nodeRef=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      node.setNodeRef(nodeRef);
      props.put("String_Node_Str",node);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_NODE)) {
      TransferManifestNormalNode node=new TransferManifestNormalNode();
      NodeRef nodeRef=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      QName type=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      node.setNodeRef(nodeRef);
      node.setType(type);
      props.put("String_Node_Str",node);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_ASPECTS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      node.setAspects(new HashSet<QName>());
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_ASPECT)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PROPERTIES)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      HashMap<QName,Serializable> properties=new HashMap<QName,Serializable>();
      node.setProperties(properties);
      props.put("String_Node_Str",properties);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PROPERTY)) {
      QName name=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      props.put("String_Node_Str",name);
      props.remove("String_Node_Str");
      props.remove("String_Node_Str");
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_HEADER_CREATED_DATE)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_HEADER_NODE_COUNT)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PARENT_ASSOCS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_CHILD_ASSOCS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      node.setChildAssocs(new ArrayList<ChildAssociationRef>());
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_CHILD_ASSOC)) {
      buffer=new StringBuffer();
      NodeRef to=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      QName type=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      Boolean isPrimary=Boolean.parseBoolean(atts.getValue("String_Node_Str","String_Node_Str"));
      props.put("String_Node_Str",to);
      props.put("String_Node_Str",type);
      props.put("String_Node_Str",isPrimary);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PARENT_ASSOC)) {
      buffer=new StringBuffer();
      NodeRef from=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      QName type=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      Boolean isPrimary=Boolean.parseBoolean(atts.getValue("String_Node_Str","String_Node_Str"));
      props.put("String_Node_Str",from);
      props.put("String_Node_Str",type);
      props.put("String_Node_Str",isPrimary);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_TARGET_ASSOCS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      List<AssociationRef> assocs=new ArrayList<AssociationRef>();
      node.setTargetAssocs(assocs);
      props.put("String_Node_Str",assocs);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_SOURCE_ASSOCS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      List<AssociationRef> assocs=new ArrayList<AssociationRef>();
      node.setSourceAssocs(assocs);
      props.put("String_Node_Str",assocs);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_ASSOC)) {
      NodeRef source=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      NodeRef target=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      QName type=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      props.put("String_Node_Str",source);
      props.put("String_Node_Str",target);
      props.put("String_Node_Str",type);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PRIMARY_PARENT)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_VALUES)) {
      Collection<Serializable> values=new ArrayList<Serializable>();
      props.put("String_Node_Str",values);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_VALUE_STRING)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_VALUE_NULL)) {
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_VALUE_SERIALIZED)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_MLVALUE)) {
      MLText mltext=(MLText)props.get("String_Node_Str");
      if (mltext == null) {
        mltext=new MLText();
        props.put("String_Node_Str",mltext);
      }
      String strLocale=(String)atts.getValue("String_Node_Str","String_Node_Str");
      Locale locale=I18NUtil.parseLocale(strLocale);
      props.put("String_Node_Str",locale);
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_CONTENT_HEADER)) {
      String contentURL=(String)atts.getValue("String_Node_Str","String_Node_Str");
      String mimetype=(String)atts.getValue("String_Node_Str","String_Node_Str");
      String strLocale=(String)atts.getValue("String_Node_Str","String_Node_Str");
      Locale locale=I18NUtil.parseLocale(strLocale);
      String encoding=(String)atts.getValue("String_Node_Str","String_Node_Str");
      String sizeStr=(String)atts.getValue("String_Node_Str","String_Node_Str");
      Long size=Long.valueOf(sizeStr);
      ContentData contentHeader=new ContentData(contentURL,mimetype,size.longValue(),encoding,locale);
      props.put("String_Node_Str",contentHeader);
    }
  }
}

Fixed version (ground truth):
/** 
 * Start Element
 */
public void startElement(String uri,String localName,String prefixName,Attributes atts) throws SAXException {
  QName elementQName=QName.resolveToQName(this,prefixName);
  HashMap<String,String> namespace=new HashMap<String,String>();
  namespaces.addFirst(namespace);
  for (int i=0; i < atts.getLength(); i++) {
    QName attributeQName=QName.resolveToQName(this,atts.getQName(i));
    if (attributeQName.getNamespaceURI().equals(XMLNS_URI)) {
      namespace.put(attributeQName.getLocalName(),atts.getValue(i));
    }
  }
  if (elementQName == null) {
    return;
  }
  if (elementQName.getNamespaceURI().equals(TRANSFER_URI))   ;
{
    String elementName=elementQName.getLocalName();
    if (elementName.equals(ManifestModel.LOCALNAME_TRANSFER_MAINIFEST)) {
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_TRANSFER_HEADER)) {
      TransferManifestHeader header=new TransferManifestHeader();
      props.put("String_Node_Str",header);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_DELETED_NODE)) {
      TransferManifestDeletedNode node=new TransferManifestDeletedNode();
      NodeRef nodeRef=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      node.setNodeRef(nodeRef);
      props.put("String_Node_Str",node);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_NODE)) {
      TransferManifestNormalNode node=new TransferManifestNormalNode();
      NodeRef nodeRef=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      QName type=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      node.setNodeRef(nodeRef);
      node.setType(type);
      props.put("String_Node_Str",node);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_ASPECTS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      node.setAspects(new HashSet<QName>());
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_ASPECT)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PROPERTIES)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      HashMap<QName,Serializable> properties=new HashMap<QName,Serializable>();
      node.setProperties(properties);
      props.put("String_Node_Str",properties);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PROPERTY)) {
      QName name=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      props.put("String_Node_Str",name);
      props.remove("String_Node_Str");
      props.remove("String_Node_Str");
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_HEADER_CREATED_DATE)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_HEADER_NODE_COUNT)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PARENT_ASSOCS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      ArrayList<ChildAssociationRef> parentAssocs=new ArrayList<ChildAssociationRef>();
      node.setParentAssocs(parentAssocs);
      props.put("String_Node_Str",parentAssocs);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_CHILD_ASSOCS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      node.setChildAssocs(new ArrayList<ChildAssociationRef>());
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_CHILD_ASSOC)) {
      buffer=new StringBuffer();
      NodeRef to=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      QName type=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      Boolean isPrimary=Boolean.parseBoolean(atts.getValue("String_Node_Str","String_Node_Str"));
      props.put("String_Node_Str",to);
      props.put("String_Node_Str",type);
      props.put("String_Node_Str",isPrimary);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PARENT_ASSOC)) {
      buffer=new StringBuffer();
      NodeRef from=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      QName type=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      Boolean isPrimary=Boolean.parseBoolean(atts.getValue("String_Node_Str","String_Node_Str"));
      props.put("String_Node_Str",from);
      props.put("String_Node_Str",type);
      props.put("String_Node_Str",isPrimary);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_TARGET_ASSOCS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      List<AssociationRef> assocs=new ArrayList<AssociationRef>();
      node.setTargetAssocs(assocs);
      props.put("String_Node_Str",assocs);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_SOURCE_ASSOCS)) {
      TransferManifestNormalNode node=(TransferManifestNormalNode)props.get("String_Node_Str");
      List<AssociationRef> assocs=new ArrayList<AssociationRef>();
      node.setSourceAssocs(assocs);
      props.put("String_Node_Str",assocs);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_ASSOC)) {
      NodeRef source=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      NodeRef target=new NodeRef(atts.getValue("String_Node_Str","String_Node_Str"));
      QName type=QName.createQName(atts.getValue("String_Node_Str","String_Node_Str"));
      props.put("String_Node_Str",source);
      props.put("String_Node_Str",target);
      props.put("String_Node_Str",type);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PRIMARY_PARENT)) {
      buffer=new StringBuffer();
      ArrayList<ChildAssociationRef> parentAssocs=new ArrayList<ChildAssociationRef>();
      props.put("String_Node_Str",parentAssocs);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_VALUES)) {
      Collection<Serializable> values=new ArrayList<Serializable>();
      props.put("String_Node_Str",values);
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_VALUE_STRING)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_VALUE_NULL)) {
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_VALUE_SERIALIZED)) {
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_MLVALUE)) {
      MLText mltext=(MLText)props.get("String_Node_Str");
      if (mltext == null) {
        mltext=new MLText();
        props.put("String_Node_Str",mltext);
      }
      String strLocale=(String)atts.getValue("String_Node_Str","String_Node_Str");
      Locale locale=I18NUtil.parseLocale(strLocale);
      props.put("String_Node_Str",locale);
      buffer=new StringBuffer();
    }
 else     if (elementName.equals(ManifestModel.LOCALNAME_ELEMENT_CONTENT_HEADER)) {
      String contentURL=(String)atts.getValue("String_Node_Str","String_Node_Str");
      String mimetype=(String)atts.getValue("String_Node_Str","String_Node_Str");
      String strLocale=(String)atts.getValue("String_Node_Str","String_Node_Str");
      Locale locale=I18NUtil.parseLocale(strLocale);
      String encoding=(String)atts.getValue("String_Node_Str","String_Node_Str");
      String sizeStr=(String)atts.getValue("String_Node_Str","String_Node_Str");
      Long size=Long.valueOf(sizeStr);
      ContentData contentHeader=new ContentData(contentURL,mimetype,size.longValue(),encoding,locale);
      props.put("String_Node_Str",contentHeader);
    }
  }
}