Program: 95877
Project: 95877
Buggy source:
/** 
 * Shared method for setting values into ExecTCs and their subclasses.
 * @param proj The IProjectPO which is currently build. The instance isneeded by some objects to verify that their data confirms to project specification (for instance languages).
 * @param xml Abstraction of the XML element (see Apache XML Beans)
 * @param exec TC to be initialized
 * @param assignNewGuid <code>true</code> if nodes are being assignednew GUIDs. Otherwise <code>false</code>.
 */
private void fillExecTestCase(IProjectPO proj,RefTestCase xml,IExecTestCasePO exec,boolean assignNewGuid){
  exec.setName(xml.getName());
  exec.setComment(xml.getComment());
  exec.setGenerated(xml.getGenerated());
  exec.setTaskId(xml.getTaskId());
  if (xml.isSetActive()) {
    exec.setActive(xml.getActive());
  }
 else {
    exec.setActive(true);
  }
  exec.setDataFile(xml.getDatafile());
  if (xml.getReferencedTestData() != null) {
    String referencedDataName=xml.getReferencedTestData();
    for (    IParameterInterfacePO testDataCube : TestDataCubeBP.getAllTestDataCubesFor(proj)) {
      if (referencedDataName.equals(testDataCube.getName())) {
        exec.setReferencedDataCube(testDataCube);
        break;
      }
    }
  }
  if (xml.getHasOwnTestdata()) {
    exec.setDataManager(createTDManager(exec,xml.getTestdata(),assignNewGuid));
  }
  for (  CompNames overriddenXml : xml.getOverriddenNamesList()) {
    final ICompNamesPairPO compName=PoMaker.createCompNamesPairPO(overriddenXml.getOriginalName(),overriddenXml.getNewName(),overriddenXml.getType());
    compName.setPropagated(overriddenXml.getPropagated());
    exec.addCompNamesPair(compName);
  }
  m_monitor.worked(1);
}

Fixed version (ground truth):
/** 
 * Shared method for setting values into ExecTCs and their subclasses.
 * @param proj The IProjectPO which is currently build. The instance isneeded by some objects to verify that their data confirms to project specification (for instance languages).
 * @param xml Abstraction of the XML element (see Apache XML Beans)
 * @param exec TC to be initialized
 * @param assignNewGuid <code>true</code> if nodes are being assignednew GUIDs. Otherwise <code>false</code>.
 */
private void fillExecTestCase(IProjectPO proj,RefTestCase xml,IExecTestCasePO exec,boolean assignNewGuid){
  exec.setName(xml.getName());
  exec.setComment(xml.getComment());
  exec.setGenerated(xml.getGenerated());
  exec.setTaskId(xml.getTaskId());
  if (xml.isSetActive()) {
    exec.setActive(xml.getActive());
  }
 else {
    exec.setActive(true);
  }
  exec.setDataFile(xml.getDatafile());
  if (xml.getReferencedTestData() != null) {
    String referencedDataName=xml.getReferencedTestData();
    for (    IParameterInterfacePO testDataCube : TestDataCubeBP.getAllTestDataCubesFor(proj)) {
      if (referencedDataName.equals(testDataCube.getName())) {
        exec.setReferencedDataCube(testDataCube);
        break;
      }
    }
  }
  if (xml.getHasOwnTestdata()) {
    exec.setDataManager(createTDManager(exec,xml.getTestdata(),assignNewGuid));
  }
  for (  CompNames overriddenXml : xml.getOverriddenNamesList()) {
    final ICompNamesPairPO compName=PoMaker.createCompNamesPairPO(overriddenXml.getOriginalName(),overriddenXml.getNewName(),null);
    compName.setPropagated(overriddenXml.getPropagated());
    exec.addCompNamesPair(compName);
  }
  m_monitor.worked(1);
}