Program: 120415
Project: 120415
Buggy source:
/** 
 * DOC informix Comment method "posExportResource".
 * @param process
 * @param exportChoice
 * @param contextName
 * @param launcher
 * @param statisticPort
 * @param tracePort
 * @param i
 * @param processItem
 * @param selectedJobVersion
 * @param resources
 * @param codeOptions
 * @return
 */
protected List<URL> posExportResource(ExportFileResource[] process,Map<ExportChoice,Object> exportChoice,String contextName,String launcher,int statisticPort,int tracePort,int i,IProcess jobProcess,ProcessItem processItem,String selectedJobVersion,List<URL> resources,String... codeOptions){
  resources.addAll(getLauncher(isOptionChoosed(ExportChoice.needLauncher),isOptionChoosed(ExportChoice.setParameterValues),isOptionChoosed(ExportChoice.needContext),jobProcess,processItem,escapeSpace(contextName),escapeSpace(launcher),statisticPort,tracePort,codeOptions));
  addSourceCode(process,processItem,isOptionChoosed(ExportChoice.needSourceCode),process[i],selectedJobVersion);
  addLog4jSetting(process[i]);
  addDependenciesSourceCode(process,process[i],isOptionChoosed(ExportChoice.needSourceCode));
  addXmlMapping(process[i],isOptionChoosed(ExportChoice.needSourceCode));
  addJobItem(process,processItem,isOptionChoosed(ExportChoice.needJobItem),process[i],selectedJobVersion);
  addDependencies(process,processItem,isOptionChoosed(ExportChoice.needDependencies) && isOptionChoosed(ExportChoice.needJobItem),process[i]);
  resources.addAll(getJobScripts(processItem,selectedJobVersion,isOptionChoosed(ExportChoice.needJobScript)));
  processItem.getProcess().getNode();
  addContextScripts(process[i],selectedJobVersion,isOptionChoosed(ExportChoice.needContext));
  addBuildScripts(process[i],processItem,selectedJobVersion);
  List<URL> esbResources=getEsbConfigs(processItem);
  if (null != esbResources) {
    process[i].addResources(esbResources);
  }
  boolean needChildren=true;
  List<URL> childrenList=addChildrenResources(process,processItem,needChildren,process[i],exportChoice,selectedJobVersion);
  return childrenList;
}

Fixed version (ground truth):
/** 
 * DOC informix Comment method "posExportResource".
 * @param process
 * @param exportChoice
 * @param contextName
 * @param launcher
 * @param statisticPort
 * @param tracePort
 * @param i
 * @param processItem
 * @param selectedJobVersion
 * @param resources
 * @param codeOptions
 * @return
 */
protected List<URL> posExportResource(ExportFileResource[] process,Map<ExportChoice,Object> exportChoice,String contextName,String launcher,int statisticPort,int tracePort,int i,IProcess jobProcess,ProcessItem processItem,String selectedJobVersion,List<URL> resources,String... codeOptions){
  resources.addAll(getLauncher(isOptionChoosed(ExportChoice.needLauncher),isOptionChoosed(ExportChoice.setParameterValues),isOptionChoosed(ExportChoice.needContext),jobProcess,processItem,escapeSpace(contextName),escapeSpace(launcher),statisticPort,tracePort,codeOptions));
  addSourceCode(process,processItem,isOptionChoosed(ExportChoice.needSourceCode),process[i],selectedJobVersion);
  addLog4jSetting(process[i]);
  addDependenciesSourceCode(process,process[i],isOptionChoosed(ExportChoice.needSourceCode));
  addXmlMapping(process[i],isOptionChoosed(ExportChoice.needSourceCode));
  addJobItem(process,processItem,isOptionChoosed(ExportChoice.needJobItem),process[i],selectedJobVersion);
  resources.addAll(getJobScripts(processItem,selectedJobVersion,isOptionChoosed(ExportChoice.needJobScript)));
  processItem.getProcess().getNode();
  addContextScripts(process[i],selectedJobVersion,isOptionChoosed(ExportChoice.needContext));
  addBuildScripts(process[i],processItem,selectedJobVersion);
  List<URL> esbResources=getEsbConfigs(processItem);
  if (null != esbResources) {
    process[i].addResources(esbResources);
  }
  boolean needChildren=true;
  List<URL> childrenList=addChildrenResources(process,processItem,needChildren,process[i],exportChoice,selectedJobVersion);
  return childrenList;
}