Program: 12596
Project: 12596
Buggy source:
public void elementGraphAssembled(ElementAssemblerResultsEvent event){
  if (log.isDebugEnabled())   log.debug("String_Node_Str");
  Iterator<String> ids=event.getSource().getResultsXmiIds().iterator();
  while (ids.hasNext()) {
    String id=ids.next();
    FumlObject fumlObject=event.getSource().lookupResult(id);
    if (fumlObject == null) {
      log.warn("String_Node_Str" + id + "String_Node_Str");
      continue;
    }
    if (fumlObject instanceof NamedElement)     if (log.isDebugEnabled())     log.debug("String_Node_Str" + fumlObject.getClass().getName() + "String_Node_Str"+ ((NamedElement)fumlObject).qualifiedName+ "String_Node_Str"+ id+ "String_Node_Str");
 else     if (log.isDebugEnabled())     log.debug("String_Node_Str" + fumlObject.getClass().getName() + "String_Node_Str"+ "String_Node_Str"+ id+ "String_Node_Str");
    if (fumlObject instanceof Activity) {
      NamedElement namedElement=(NamedElement)fumlObject;
      Repository.INSTANCE.getMapping().mapElementByName(namedElement,this.artifact);
      Repository.INSTANCE.getMapping().mapElementById(namedElement,this.artifact);
    }
 else     if (fumlObject instanceof Class_ && !(fumlObject instanceof OpaqueBehavior)) {
      Class_ clss=(Class_)fumlObject;
      classList.add(clss);
      if (!(clss instanceof Stereotype)) {
        if (clss.package_ != null) {
          Repository.INSTANCE.getMapping().mapClass(clss,getQualifiedPackageName(clss.package_),artifact);
        }
 else         Repository.INSTANCE.getMapping().mapClass(clss,null,artifact);
      }
 else {
        Stereotype stereotype=(Stereotype)clss;
        if (stereotype.package_ != null)         Repository.INSTANCE.getMapping().mapStereotype(stereotype,getQualifiedPackageName(stereotype.package_),artifact);
 else         Repository.INSTANCE.getMapping().mapStereotype(stereotype,null,artifact);
      }
    }
 else     if (fumlObject instanceof Enumeration) {
      Enumeration enumeration=(Enumeration)fumlObject;
      if (enumeration.package_ != null)       Repository.INSTANCE.getMapping().mapEnumerationExternal(enumeration,getQualifiedPackageName(enumeration.package_),artifact);
 else       Repository.INSTANCE.getMapping().mapEnumerationExternal(enumeration,null,artifact);
    }
 else     if (fumlObject instanceof DataType) {
      if (!(fumlObject instanceof PrimitiveType)) {
        DataType datatype=(DataType)fumlObject;
        if (datatype.package_ != null)         Repository.INSTANCE.getMapping().mapDataType(datatype,getQualifiedPackageName(datatype.package_),artifact);
 else         Repository.INSTANCE.getMapping().mapDataType(datatype,null,artifact);
      }
    }
 else     if (fumlObject instanceof Property) {
      Property property=(Property)fumlObject;
      Repository.INSTANCE.getMapping().mapProperty(property.class_,property,this.artifact);
    }
 else     if (fumlObject instanceof EnumerationLiteral) {
      EnumerationLiteral literal=(EnumerationLiteral)fumlObject;
      Repository.INSTANCE.getMapping().mapEnumerationLiteral(literal,null,artifact);
    }
 else     if (fumlObject instanceof Package) {
      Package pkg=(Package)fumlObject;
      Repository.INSTANCE.getMapping().mapPackage(pkg,null,artifact);
    }
 else     if (fumlObject instanceof NamedElement) {
      NamedElement namedElement=(NamedElement)fumlObject;
      Repository.INSTANCE.getMapping().mapElementByName(namedElement,this.artifact);
      Repository.INSTANCE.getMapping().mapElementById(namedElement,this.artifact);
    }
 else     if (fumlObject instanceof Element) {
      Element element=(Element)fumlObject;
      Repository.INSTANCE.getMapping().mapElementById(element,this.artifact);
    }
 else     if (log.isDebugEnabled())     log.debug("String_Node_Str" + fumlObject.getClass().getName());
  }
}

Fixed version (ground truth):
public void elementGraphAssembled(ElementAssemblerResultsEvent event){
  if (log.isDebugEnabled())   log.debug("String_Node_Str");
  Iterator<String> ids=event.getSource().getResultsXmiIds().iterator();
  while (ids.hasNext()) {
    String id=ids.next();
    FumlObject fumlObject=event.getSource().lookupResult(id);
    if (fumlObject == null) {
      log.warn("String_Node_Str" + id + "String_Node_Str");
      continue;
    }
    if (fumlObject instanceof NamedElement)     if (log.isDebugEnabled())     log.debug("String_Node_Str" + fumlObject.getClass().getName() + "String_Node_Str"+ ((NamedElement)fumlObject).qualifiedName+ "String_Node_Str"+ id+ "String_Node_Str");
 else     if (log.isDebugEnabled())     log.debug("String_Node_Str" + fumlObject.getClass().getName() + "String_Node_Str"+ "String_Node_Str"+ id+ "String_Node_Str");
    if (fumlObject instanceof Activity) {
      NamedElement namedElement=(NamedElement)fumlObject;
      Repository.INSTANCE.getMapping().mapElementByName(namedElement,this.artifact);
      Repository.INSTANCE.getMapping().mapElementById(namedElement,this.artifact);
    }
 else     if (fumlObject instanceof Class_ && !(fumlObject instanceof OpaqueBehavior)) {
      Class_ clss=(Class_)fumlObject;
      if (!(clss instanceof Stereotype)) {
        if (clss.package_ != null) {
          this.classList.add(Repository.INSTANCE.getMapping().mapClass(clss,getQualifiedPackageName(clss.package_),artifact));
        }
 else         this.classList.add(Repository.INSTANCE.getMapping().mapClass(clss,null,artifact));
      }
 else {
        Stereotype stereotype=(Stereotype)clss;
        if (stereotype.package_ != null)         this.classList.add(Repository.INSTANCE.getMapping().mapStereotype(stereotype,getQualifiedPackageName(stereotype.package_),artifact));
 else         this.classList.add(Repository.INSTANCE.getMapping().mapStereotype(stereotype,null,artifact));
      }
    }
 else     if (fumlObject instanceof Enumeration) {
      Enumeration enumeration=(Enumeration)fumlObject;
      if (enumeration.package_ != null)       Repository.INSTANCE.getMapping().mapEnumerationExternal(enumeration,getQualifiedPackageName(enumeration.package_),artifact);
 else       Repository.INSTANCE.getMapping().mapEnumerationExternal(enumeration,null,artifact);
    }
 else     if (fumlObject instanceof DataType) {
      if (!(fumlObject instanceof PrimitiveType)) {
        DataType datatype=(DataType)fumlObject;
        if (datatype.package_ != null)         Repository.INSTANCE.getMapping().mapDataType(datatype,getQualifiedPackageName(datatype.package_),artifact);
 else         Repository.INSTANCE.getMapping().mapDataType(datatype,null,artifact);
      }
    }
 else     if (fumlObject instanceof Property) {
      Property property=(Property)fumlObject;
      Repository.INSTANCE.getMapping().mapProperty(property.class_,property,this.artifact);
    }
 else     if (fumlObject instanceof EnumerationLiteral) {
      EnumerationLiteral literal=(EnumerationLiteral)fumlObject;
      Repository.INSTANCE.getMapping().mapEnumerationLiteral(literal,null,artifact);
    }
 else     if (fumlObject instanceof Package) {
      Package pkg=(Package)fumlObject;
      Repository.INSTANCE.getMapping().mapPackage(pkg,null,artifact);
    }
 else     if (fumlObject instanceof NamedElement) {
      NamedElement namedElement=(NamedElement)fumlObject;
      Repository.INSTANCE.getMapping().mapElementByName(namedElement,this.artifact);
      Repository.INSTANCE.getMapping().mapElementById(namedElement,this.artifact);
    }
 else     if (fumlObject instanceof Element) {
      Element element=(Element)fumlObject;
      Repository.INSTANCE.getMapping().mapElementById(element,this.artifact);
    }
 else     if (log.isDebugEnabled())     log.debug("String_Node_Str" + fumlObject.getClass().getName());
  }
}