Program: 60483
Project: 60483
Buggy source:
@Override public void run(final AbstractUIProcessHandler handler,final String[] args){
  final String installPath=args[0];
  final String mavenDir=args[1];
  final String groupId=args[2];
  final String artifactId=args[3];
  final String secretKey=args[4];
  final String anonymousKey=args[5];
  final String confDirectory=args[6];
  final String logsDirectory=args[7];
  final String bundlesDirectory=args[8];
  final String modelerDirectory=args[9];
  final String syncopeVersion=args[10];
  final String syncopeAdminPassword=args[11];
  final boolean isProxyEnabled=Boolean.valueOf(args[12]);
  final String proxyHost=args[13];
  final String proxyPort=args[14];
  final String proxyUser=args[15];
  final String proxyPwd=args[16];
  final boolean mavenProxyAutoconf=Boolean.valueOf(args[17]);
  setSyncopeInstallDir(installPath,artifactId);
  FileSystemUtils fileSystemUtils=new FileSystemUtils(handler);
  fileSystemUtils.createDirectory(installPath);
  InstallLog.initialize(installPath,handler);
  MavenUtils mavenUtils=new MavenUtils(mavenDir,handler);
  File customMavenProxySettings=null;
  try {
    if (isProxyEnabled && mavenProxyAutoconf) {
      customMavenProxySettings=MavenUtils.createSettingsWithProxy(installPath,proxyHost,proxyPort,proxyUser,proxyPwd);
    }
  }
 catch (  IOException e) {
    StringBuilder message=new StringBuilder("String_Node_Str");
    handler.emitError(message.toString(),e.getMessage());
    InstallLog.getInstance().error(message.append('\n').append(e.getMessage()).toString());
  }
catch (  ParserConfigurationException e) {
    StringBuilder message=new StringBuilder("String_Node_Str");
    handler.emitError(message.toString(),e.getMessage());
    InstallLog.getInstance().error(message.append('\n').append(e.getMessage()).toString());
  }
catch (  TransformerException e) {
    StringBuilder message=new StringBuilder("String_Node_Str");
    handler.emitError(message.toString(),e.getMessage());
    InstallLog.getInstance().error(message.append('\n').append(e.getMessage()).toString());
  }
catch (  SAXException e) {
    StringBuilder message=new StringBuilder("String_Node_Str");
    handler.emitError(message.toString(),e.getMessage());
    InstallLog.getInstance().error(message.append('\n').append(e.getMessage()).toString());
  }
  handler.logOutput("String_Node_Str",true);
  handler.logOutput("String_Node_Str" + InstallLog.getInstance().getFileAbsolutePath() + "String_Node_Str",true);
  handler.logOutput("String_Node_Str",true);
  mavenUtils.archetypeGenerate(syncopeVersion,groupId,artifactId,secretKey,anonymousKey,installPath,customMavenProxySettings);
  if (syncopeVersion.contains("String_Node_Str")) {
    final File pomFile=new File(syncopeInstallDir + PROPERTIES.getProperty("String_Node_Str"));
    String contentPomFile=fileSystemUtils.readFile(pomFile);
    fileSystemUtils.writeToFile(pomFile,contentPomFile.replace(ParentPom.PLACEHOLDER,ParentPom.REPOSITORY));
  }
  fileSystemUtils.createDirectory(confDirectory);
  fileSystemUtils.createDirectory(logsDirectory);
  fileSystemUtils.createDirectory(bundlesDirectory);
  fileSystemUtils.createDirectory(modelerDirectory);
  fileSystemUtils.copyFileFromResources(File.separator + PROPERTIES.getProperty("String_Node_Str"),modelerDirectory + File.separator + PROPERTIES.getProperty("String_Node_Str"),handler);
  fileSystemUtils.copyFile(syncopeInstallDir + PROPERTIES.getProperty("String_Node_Str") + File.separator+ PROPERTIES.getProperty("String_Node_Str"),modelerDirectory + File.separator + PROPERTIES.getProperty("String_Node_Str"));
  fileSystemUtils.copyFile(syncopeInstallDir + PROPERTIES.getProperty("String_Node_Str") + File.separator+ PROPERTIES.getProperty("String_Node_Str"),modelerDirectory + File.separator + PROPERTIES.getProperty("String_Node_Str"));
  fileSystemUtils.copyFile(syncopeInstallDir + PROPERTIES.getProperty("String_Node_Str") + File.separator+ PROPERTIES.getProperty("String_Node_Str"),modelerDirectory + File.separator + PROPERTIES.getProperty("String_Node_Str"));
  fileSystemUtils.copyFile(syncopeInstallDir + PROPERTIES.getProperty("String_Node_Str") + File.separator+ PROPERTIES.getProperty("String_Node_Str"),modelerDirectory + File.separator + PROPERTIES.getProperty("String_Node_Str"));
  final Properties modelerProperties=new Properties();
  modelerProperties.setProperty("String_Node_Str",modelerDirectory);
  mavenUtils.mvnCleanPackageWithProperties(modelerDirectory,modelerProperties,customMavenProxySettings);
  final Properties syncopeProperties=new Properties();
  syncopeProperties.setProperty("String_Node_Str",confDirectory);
  syncopeProperties.setProperty("String_Node_Str",logsDirectory);
  syncopeProperties.setProperty("String_Node_Str",bundlesDirectory);
  mavenUtils.mvnCleanPackageWithProperties(installPath + File.separator + artifactId,syncopeProperties,customMavenProxySettings);
}

Fixed version (ground truth):
@Override public void run(final AbstractUIProcessHandler handler,final String[] args){
  final String installPath=args[0];
  final String mavenDir=args[1];
  final String groupId=args[2];
  final String artifactId=args[3];
  final String secretKey=args[4];
  final String anonymousKey=args[5];
  final String confDirectory=args[6];
  final String logsDirectory=args[7];
  final String bundlesDirectory=args[8];
  final String modelerDirectory=args[9];
  final String syncopeVersion=args[10];
  final String syncopeAdminPassword=args[11];
  final boolean isProxyEnabled=Boolean.valueOf(args[12]);
  final String proxyHost=args[13];
  final String proxyPort=args[14];
  final String proxyUser=args[15];
  final String proxyPwd=args[16];
  final boolean mavenProxyAutoconf=Boolean.valueOf(args[17]);
  setSyncopeInstallDir(installPath,artifactId);
  FileSystemUtils fileSystemUtils=new FileSystemUtils(handler);
  fileSystemUtils.createDirectory(installPath);
  InstallLog.initialize(installPath,handler);
  MavenUtils mavenUtils=new MavenUtils(mavenDir,handler);
  File customMavenProxySettings=null;
  try {
    if (isProxyEnabled && mavenProxyAutoconf) {
      customMavenProxySettings=MavenUtils.createSettingsWithProxy(installPath,proxyHost,proxyPort,proxyUser,proxyPwd);
    }
  }
 catch (  IOException e) {
    StringBuilder message=new StringBuilder("String_Node_Str");
    handler.emitError(message.toString(),e.getMessage());
    InstallLog.getInstance().error(message.append('\n').append(e.getMessage()).toString());
  }
catch (  ParserConfigurationException e) {
    StringBuilder message=new StringBuilder("String_Node_Str");
    handler.emitError(message.toString(),e.getMessage());
    InstallLog.getInstance().error(message.append('\n').append(e.getMessage()).toString());
  }
catch (  TransformerException e) {
    StringBuilder message=new StringBuilder("String_Node_Str");
    handler.emitError(message.toString(),e.getMessage());
    InstallLog.getInstance().error(message.append('\n').append(e.getMessage()).toString());
  }
catch (  SAXException e) {
    StringBuilder message=new StringBuilder("String_Node_Str");
    handler.emitError(message.toString(),e.getMessage());
    InstallLog.getInstance().error(message.append('\n').append(e.getMessage()).toString());
  }
  handler.logOutput("String_Node_Str",true);
  handler.logOutput("String_Node_Str" + InstallLog.getInstance().getFileAbsolutePath() + "String_Node_Str",true);
  handler.logOutput("String_Node_Str",true);
  mavenUtils.archetypeGenerate(syncopeVersion,groupId,artifactId,secretKey,anonymousKey,installPath,customMavenProxySettings);
  if (syncopeVersion.contains("String_Node_Str")) {
    final File pomFile=new File(syncopeInstallDir + PROPERTIES.getProperty("String_Node_Str"));
    String contentPomFile=fileSystemUtils.readFile(pomFile);
    fileSystemUtils.writeToFile(pomFile,contentPomFile.replace(ParentPom.PLACEHOLDER,ParentPom.REPOSITORY));
  }
  fileSystemUtils.createDirectory(confDirectory);
  fileSystemUtils.createDirectory(logsDirectory);
  fileSystemUtils.createDirectory(bundlesDirectory);
  fileSystemUtils.createDirectory(modelerDirectory);
  fileSystemUtils.copyFileFromResources(File.separator + PROPERTIES.getProperty("String_Node_Str"),modelerDirectory + File.separator + PROPERTIES.getProperty("String_Node_Str"),handler);
  fileSystemUtils.copyFile(syncopeInstallDir + PROPERTIES.getProperty("String_Node_Str") + File.separator+ PROPERTIES.getProperty("String_Node_Str"),modelerDirectory + File.separator + PROPERTIES.getProperty("String_Node_Str"));
  fileSystemUtils.copyFile(syncopeInstallDir + PROPERTIES.getProperty("String_Node_Str") + File.separator+ PROPERTIES.getProperty("String_Node_Str"),modelerDirectory + File.separator + PROPERTIES.getProperty("String_Node_Str"));
  final Properties modelerProperties=new Properties();
  modelerProperties.setProperty("String_Node_Str",modelerDirectory);
  mavenUtils.mvnCleanPackageWithProperties(modelerDirectory,modelerProperties,customMavenProxySettings);
  final Properties syncopeProperties=new Properties();
  syncopeProperties.setProperty("String_Node_Str",confDirectory);
  syncopeProperties.setProperty("String_Node_Str",logsDirectory);
  syncopeProperties.setProperty("String_Node_Str",bundlesDirectory);
  mavenUtils.mvnCleanPackageWithProperties(installPath + File.separator + artifactId,syncopeProperties,customMavenProxySettings);
}