Program: 123527
Project: 123527
Buggy source:
@Override protected Map<ExportChoice,Object> getExportChoiceMap(){
  JobExportType comboType=JobExportType.getTypeFromString(exportTypeCombo.getText());
  if (comboType.equals(JobExportType.POJO)) {
    return JavaJobScriptsExportWSWizardPage.super.getExportChoiceMap();
  }
  Map<ExportChoice,Object> exportChoiceMap=new EnumMap<ExportChoice,Object>(ExportChoice.class);
  if (comboType.equals(JobExportType.PETALSESB)) {
    exportChoiceMap.put(ExportChoice.needSourceCode,sourceButton.getSelection());
    exportChoiceMap.put(ExportChoice.needDependencies,exportDependencies.getSelection());
    exportChoiceMap.put(ExportChoice.needUserRoutine,userRoutineButton.getSelection());
    return exportChoiceMap;
  }
  exportChoiceMap.put(ExportChoice.needJobItem,false);
  exportChoiceMap.put(ExportChoice.needSourceCode,false);
  if (comboType.equals(JobExportType.JBOSSESB)) {
    exportChoiceMap.put(ExportChoice.needMetaInfo,true);
    exportChoiceMap.put(ExportChoice.needContext,contextButton.getSelection());
    exportChoiceMap.put(ExportChoice.esbQueueMessageName,esbQueueMessageName.getText());
    exportChoiceMap.put(ExportChoice.esbServiceName,esbServiceName.getText());
    exportChoiceMap.put(ExportChoice.esbCategory,esbCategory.getText());
    exportChoiceMap.put(ExportChoice.esbExportType,esbTypeCombo.getText());
    exportChoiceMap.put(ExportChoice.needDependencies,exportDependencies.getSelection());
    exportChoiceMap.put(ExportChoice.needJobItem,jobItemButton.getSelection());
    exportChoiceMap.put(ExportChoice.needSourceCode,jobItemButton.getSelection());
    return exportChoiceMap;
  }
  if (comboType.equals(JobExportType.OSGI)) {
    exportChoiceMap.put(ExportChoice.needMetaInfo,true);
    exportChoiceMap.put(ExportChoice.needContext,true);
    exportChoiceMap.put(ExportChoice.needJobItem,false);
    exportChoiceMap.put(ExportChoice.needSourceCode,false);
    return exportChoiceMap;
  }
  if (comboType.equals(JobExportType.WSWAR)) {
    exportChoiceMap.put(ExportChoice.needMetaInfo,true);
  }
 else {
    exportChoiceMap.put(ExportChoice.needMetaInfo,false);
  }
  exportChoiceMap.put(ExportChoice.needJobItem,jobScriptButton.getSelection());
  exportChoiceMap.put(ExportChoice.needSourceCode,jobScriptButton.getSelection());
  exportChoiceMap.put(ExportChoice.needWEBXML,webXMLButton.getSelection());
  exportChoiceMap.put(ExportChoice.needCONFIGFILE,configFileButton.getSelection());
  exportChoiceMap.put(ExportChoice.needAXISLIB,axisLibButton.getSelection());
  exportChoiceMap.put(ExportChoice.needWSDD,wsddButton.getSelection());
  exportChoiceMap.put(ExportChoice.needWSDL,wsdlButton.getSelection());
  exportChoiceMap.put(ExportChoice.needJobScript,jobScriptButton.getSelection());
  exportChoiceMap.put(ExportChoice.needContext,contextButton.getSelection());
  exportChoiceMap.put(ExportChoice.applyToChildren,applyToChildrenButton.getSelection());
  return exportChoiceMap;
}

Fixed version (ground truth):
@Override protected Map<ExportChoice,Object> getExportChoiceMap(){
  JobExportType comboType=JobExportType.getTypeFromString(exportTypeCombo.getText());
  if (comboType.equals(JobExportType.POJO)) {
    return JavaJobScriptsExportWSWizardPage.super.getExportChoiceMap();
  }
  Map<ExportChoice,Object> exportChoiceMap=new EnumMap<ExportChoice,Object>(ExportChoice.class);
  if (comboType.equals(JobExportType.PETALSESB)) {
    exportChoiceMap.put(ExportChoice.needSourceCode,sourceButton.getSelection());
    exportChoiceMap.put(ExportChoice.needDependencies,exportDependencies.getSelection());
    exportChoiceMap.put(ExportChoice.needUserRoutine,userRoutineButton.getSelection());
    return exportChoiceMap;
  }
  exportChoiceMap.put(ExportChoice.needJobItem,false);
  exportChoiceMap.put(ExportChoice.needSourceCode,false);
  if (comboType.equals(JobExportType.JBOSSESB)) {
    exportChoiceMap.put(ExportChoice.needMetaInfo,true);
    exportChoiceMap.put(ExportChoice.needContext,contextButton.getSelection());
    exportChoiceMap.put(ExportChoice.esbQueueMessageName,esbQueueMessageName.getText());
    exportChoiceMap.put(ExportChoice.esbServiceName,esbServiceName.getText());
    exportChoiceMap.put(ExportChoice.esbCategory,esbCategory.getText());
    exportChoiceMap.put(ExportChoice.esbExportType,esbTypeCombo.getText());
    exportChoiceMap.put(ExportChoice.needDependencies,exportDependencies.getSelection());
    exportChoiceMap.put(ExportChoice.needJobItem,jobItemButton.getSelection());
    exportChoiceMap.put(ExportChoice.needSourceCode,jobItemButton.getSelection());
    return exportChoiceMap;
  }
  if (comboType.equals(JobExportType.OSGI)) {
    exportChoiceMap.put(ExportChoice.needMetaInfo,true);
    exportChoiceMap.put(ExportChoice.needContext,true);
    exportChoiceMap.put(ExportChoice.needJobItem,false);
    exportChoiceMap.put(ExportChoice.needSourceCode,false);
    return exportChoiceMap;
  }
  exportChoiceMap.put(ExportChoice.needJobItem,jobScriptButton.getSelection());
  exportChoiceMap.put(ExportChoice.needSourceCode,jobScriptButton.getSelection());
  exportChoiceMap.put(ExportChoice.needWEBXML,webXMLButton.getSelection());
  exportChoiceMap.put(ExportChoice.needCONFIGFILE,configFileButton.getSelection());
  exportChoiceMap.put(ExportChoice.needAXISLIB,axisLibButton.getSelection());
  exportChoiceMap.put(ExportChoice.needWSDD,wsddButton.getSelection());
  exportChoiceMap.put(ExportChoice.needWSDL,wsdlButton.getSelection());
  exportChoiceMap.put(ExportChoice.needJobScript,jobScriptButton.getSelection());
  exportChoiceMap.put(ExportChoice.needContext,contextButton.getSelection());
  exportChoiceMap.put(ExportChoice.applyToChildren,applyToChildrenButton.getSelection());
  if (comboType.equals(JobExportType.WSWAR)) {
    exportChoiceMap.put(ExportChoice.needMetaInfo,true);
    exportChoiceMap.put(ExportChoice.needJobItem,true);
    exportChoiceMap.put(ExportChoice.needDependencies,true);
    exportChoiceMap.put(ExportChoice.needSourceCode,true);
  }
 else {
    exportChoiceMap.put(ExportChoice.needMetaInfo,false);
  }
  return exportChoiceMap;
}