Program: 120776
Project: 120776
Buggy source:
/** 
 * Generate Part Code for a given Component.
 * @param node the component
 * @param part the component's part
 * @return the generated code
 * @throws CodeGeneratorException if an error occurs during Code Generation
 */
public String generateComponentCode(INode node,ECodePart part) throws CodeGeneratorException {
  CodeGeneratorArgument argument=new CodeGeneratorArgument();
  argument.setNode(node);
  argument.setCodePart(part);
  argument.setStatistics(statistics);
  argument.setTrace(trace);
  argument.setInterpreterPath(interpreterPath);
  argument.setLibPath(libPath);
  argument.setRuntimeFilePath(runtimeFilePath);
  argument.setCurrentProjectName(currentProjectName);
  argument.setContextName(contextName);
  argument.setJobName(jobName);
  argument.setJobVersion(jobVersion);
  argument.setCheckingSyntax(checkingSyntax);
  argument.setIsRunInMultiThread(getRunInMultiThread());
  argument.setPauseTime(CorePlugin.getDefault().getRunProcessService().getPauseTime());
  JetBean jetBean=initializeJetBean(argument);
  StringBuffer content=new StringBuffer();
  try {
    content.append(generateTypedComponentCode(EInternalTemplate.PART_HEADER,node,part));
    IComponentFileNaming componentFileNaming=ComponentsFactoryProvider.getFileNamingInstance();
    String templateURI=node.getComponent().getPathSource() + TemplateUtil.DIR_SEP + node.getComponent().getName()+ TemplateUtil.DIR_SEP+ componentFileNaming.getJetFileName(node.getComponent(),language.getExtension(),part);
    jetBean.setTemplateRelativeUri(templateURI);
    JetProxy proxy=new JetProxy(jetBean);
    content.append(proxy.generate());
    content.append(generateTypedComponentCode(EInternalTemplate.PART_FOOTER,node,part));
  }
 catch (  JETException jetException) {
    log.error(jetException.getMessage(),jetException);
    throw new CodeGeneratorException(jetException);
  }
catch (  CoreException coreException) {
    log.error(coreException.getMessage(),coreException);
    throw new CodeGeneratorException(coreException);
  }
  return content.toString();
}

Fixed version (ground truth):
/** 
 * Generate Part Code for a given Component.
 * @param node the component
 * @param part the component's part
 * @return the generated code
 * @throws CodeGeneratorException if an error occurs during Code Generation
 */
@Override public String generateComponentCode(INode node,ECodePart part) throws CodeGeneratorException {
  CodeGeneratorArgument argument=new CodeGeneratorArgument();
  argument.setNode(node);
  argument.setCodePart(part);
  argument.setStatistics(statistics);
  argument.setTrace(trace);
  argument.setInterpreterPath(interpreterPath);
  argument.setLibPath(libPath);
  argument.setRuntimeFilePath(runtimeFilePath);
  argument.setCurrentProjectName(currentProjectName);
  argument.setContextName(contextName);
  argument.setJobName(jobName);
  argument.setJobVersion(jobVersion);
  argument.setCheckingSyntax(checkingSyntax);
  argument.setIsRunInMultiThread(getRunInMultiThread());
  argument.setPauseTime(CorePlugin.getDefault().getRunProcessService().getPauseTime());
  JetBean jetBean=initializeJetBean(argument);
  StringBuffer content=new StringBuffer();
  try {
    content.append(generateTypedComponentCode(EInternalTemplate.PART_HEADER,node,part));
    IComponentFileNaming componentFileNaming=ComponentsFactoryProvider.getFileNamingInstance();
    String templateURI=node.getComponent().getPathSource() + TemplateUtil.DIR_SEP + node.getComponent().getName()+ TemplateUtil.DIR_SEP+ componentFileNaming.getJetFileName(node.getComponent(),language.getExtension(),part);
    jetBean.setTemplateRelativeUri(templateURI);
    JetProxy proxy=new JetProxy(jetBean);
    content.append(proxy.generate());
    content.append(generateTypedComponentCode(EInternalTemplate.PART_FOOTER,node,part));
  }
 catch (  JETException jetException) {
    log.error(jetException.getMessage(),jetException);
    throw new CodeGeneratorException(jetException);
  }
catch (  CoreException coreException) {
    log.error(coreException.getMessage(),coreException);
    throw new CodeGeneratorException(coreException);
  }
  return content.toString();
}