Program: 126415
Project: 126415
Buggy source:
private static Object getFTPValue(FTPConnection connection,String value){
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getHost())) {
      return connection.getHost();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getHost());
    }
  }
  if (value.equals("String_Node_Str")) {
    return connection.getPort();
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getUsername())) {
      return connection.getUsername();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getUsername());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getPassword())) {
      return connection.getPassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getPassword());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getKeystoreFile())) {
      return connection.getKeystoreFile();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getKeystoreFile());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getKeystorePassword())) {
      return connection.getKeystorePassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getKeystorePassword());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getMethod())) {
      return connection.getMethod();
    }
 else {
      if (connection.getMethod().equals("String_Node_Str")) {
        return "String_Node_Str";
      }
 else       if (connection.getMethod().equals("String_Node_Str")) {
        return "String_Node_Str";
      }
      return TalendQuoteUtils.addQuotes(connection.getMethod());
    }
  }
  if (value.equals("String_Node_Str")) {
    return connection.isSFTP();
  }
  if (value.equals("String_Node_Str")) {
    return connection.isFTPS();
  }
  if (value.equals("String_Node_Str")) {
    if (connection.getMode() == null) {
      return "String_Node_Str";
    }
    return connection.getMode().toUpperCase();
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getCustomEncode())) {
      return connection.getCustomEncode();
    }
 else {
      if (connection.getCustomEncode() == null) {
        return TalendQuoteUtils.addQuotes(EMetadataEncoding.getMetadataEncoding("String_Node_Str").getName());
      }
 else {
        return TalendQuoteUtils.addQuotes(connection.getCustomEncode());
      }
    }
  }
  if (value.equals("String_Node_Str")) {
    return connection.isUsesocks();
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getProxyhost())) {
      return connection.getProxyhost();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyhost());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getProxyport())) {
      return connection.getProxyport();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyport());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getProxyuser())) {
      return connection.getProxyuser();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyuser());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getProxypassword())) {
      return connection.getProxypassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxypassword());
    }
  }
  return null;
}

Fixed version (ground truth):
private static Object getFTPValue(FTPConnection connection,String value){
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getHost())) {
      return connection.getHost();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getHost());
    }
  }
  if (value.equals("String_Node_Str")) {
    return connection.getPort();
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getUsername())) {
      return connection.getUsername();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getUsername());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getPassword())) {
      return connection.getPassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getPassword());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getKeystoreFile())) {
      return connection.getKeystoreFile();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getKeystoreFile());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getKeystorePassword())) {
      return connection.getKeystorePassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getKeystorePassword());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getPrivatekey())) {
      return connection.getPrivatekey();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getPrivatekey());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getPassphrase())) {
      return connection.getPassphrase();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getPassphrase());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getMethod())) {
      return connection.getMethod();
    }
 else {
      if (connection.getMethod().equals("String_Node_Str")) {
        return "String_Node_Str";
      }
 else       if (connection.getMethod().equals("String_Node_Str")) {
        return "String_Node_Str";
      }
      return TalendQuoteUtils.addQuotes(connection.getMethod());
    }
  }
  if (value.equals("String_Node_Str")) {
    return connection.isSFTP();
  }
  if (value.equals("String_Node_Str")) {
    return connection.isFTPS();
  }
  if (value.equals("String_Node_Str")) {
    if (connection.getMode() == null) {
      return "String_Node_Str";
    }
    return connection.getMode().toUpperCase();
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getCustomEncode())) {
      return connection.getCustomEncode();
    }
 else {
      if (connection.getCustomEncode() == null) {
        return TalendQuoteUtils.addQuotes(EMetadataEncoding.getMetadataEncoding("String_Node_Str").getName());
      }
 else {
        return TalendQuoteUtils.addQuotes(connection.getCustomEncode());
      }
    }
  }
  if (value.equals("String_Node_Str")) {
    return connection.isUsesocks();
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getProxyhost())) {
      return connection.getProxyhost();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyhost());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getProxyport())) {
      return connection.getProxyport();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyport());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getProxyuser())) {
      return connection.getProxyuser();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyuser());
    }
  }
  if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getProxypassword())) {
      return connection.getProxypassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxypassword());
    }
  }
  return null;
}