Program: 95501
Project: 95501
Buggy source:
/** 
 * Creates the instance of the persistent object which is defined by the DTO element used as parameter. The method generates all dependent objects as well.
 * @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 dto Abstraction of the TestSuiteDTO element
 * @param assignNewGuid <code>true</code> if the test suiteshould be assigned a new GUID. Otherwise <code>false</code>.
 * @return a persistent object generated from the information in the DTOelement
 */
private IExecPersistable createTestSuite(IProjectPO proj,TestSuiteDTO dto,boolean assignNewGuid){
  ITestSuitePO ts;
  if (dto.getUuid() != null && !assignNewGuid) {
    ts=NodeMaker.createTestSuitePO(dto.getName(),dto.getUuid());
  }
 else {
    ts=NodeMaker.createTestSuitePO(dto.getName());
  }
  if (assignNewGuid) {
    m_oldToNewGuids.put(dto.getUuid(),ts.getGuid());
  }
  ts.setComment(dto.getComment());
  ts.setDescription(dto.getDescription());
  ts.setTaskId(dto.getTaskId());
  ts.setTrackedChangesMap(dto.getTrackedModifications());
  if (dto.getSelectedAut() != null) {
    ts.setAut(m_autRef.get(dto.getSelectedAut()));
  }
  for (  RefTestCaseDTO ref : dto.getUsedTestcases()) {
    ts.addNode(createExecTestCase(proj,ref,assignNewGuid));
  }
  Map<String,Integer> defaultEventHandler=new HashMap<String,Integer>();
  for (  DefaultEventHandlerDTO evh : dto.getEventHandlers()) {
    defaultEventHandler.put(evh.getEvent(),org.eclipse.jubula.client.archive.schema.ReentryProperty.Enum.forString(evh.getReentryProperty()).intValue());
  }
  ts.setDefaultEventHandler(defaultEventHandler);
  ts.setStepDelay(dto.getStepDelay());
  ts.setRelevant(dto.isRelevant());
  return ts;
}

Fixed version (ground truth):
/** 
 * Creates the instance of the persistent object which is defined by the DTO element used as parameter. The method generates all dependent objects as well.
 * @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 dto Abstraction of the TestSuiteDTO element
 * @param assignNewGuid <code>true</code> if the test suiteshould be assigned a new GUID. Otherwise <code>false</code>.
 * @return a persistent object generated from the information in the DTOelement
 */
private IExecPersistable createTestSuite(IProjectPO proj,TestSuiteDTO dto,boolean assignNewGuid){
  ITestSuitePO ts;
  if (dto.getUuid() != null && !assignNewGuid) {
    ts=NodeMaker.createTestSuitePO(dto.getName(),dto.getUuid());
  }
 else {
    ts=NodeMaker.createTestSuitePO(dto.getName());
  }
  if (assignNewGuid) {
    m_oldToNewGuids.put(dto.getUuid(),ts.getGuid());
  }
  ts.setComment(dto.getComment());
  ts.setDescription(dto.getDescription());
  ts.setTaskId(dto.getTaskId());
  ts.setTrackedChangesMap(dto.getTrackedModifications());
  if (dto.getSelectedAut() != null) {
    ts.setAut(m_autRef.get(dto.getSelectedAut()));
  }
  for (  NodeDTO ref : dto.getUsedTestCases()) {
    if (ref instanceof RefTestCaseDTO) {
      ts.addNode(createExecTestCase(proj,(RefTestCaseDTO)ref,assignNewGuid));
    }
    if (ref instanceof CommentDTO) {
      ts.addNode(createComment((CommentDTO)ref,assignNewGuid));
    }
  }
  Map<String,Integer> defaultEventHandler=new HashMap<String,Integer>();
  for (  DefaultEventHandlerDTO evh : dto.getEventHandlers()) {
    defaultEventHandler.put(evh.getEvent(),org.eclipse.jubula.client.archive.schema.ReentryProperty.Enum.forString(evh.getReentryProperty()).intValue());
  }
  ts.setDefaultEventHandler(defaultEventHandler);
  ts.setStepDelay(dto.getStepDelay());
  ts.setRelevant(dto.isRelevant());
  return ts;
}