if (thisColumn == null) sb.append("NULL,"); else sb.append("'"+thisColumn+"',");
if (thisColumn == null) { sb.append("NULL,"); } else { sb.append("'"+thisColumn+"',"); }
  protected void insertConflictRow(Logger logger, Statement s, ResultSet rs1, ResultSet rs2,				   String tableName, int count) {    try {      StringBuffer sb = new StringBuffer();      sb.append("insert into "+tableName+" values (");      sb.append("'"+-count+"',");      for(int i=1;i<=rs1.getMetaData().getColumnCount();i++) {	String thisColumn = rs1.getString(i);	if (thisColumn == null) sb.append("NULL,");	else sb.append("'"+thisColumn+"',");      }      for(int i=1;i<=rs2.getMetaData().getColumnCount();i++) {	String thisColumn = rs2.getString(i);	if (thisColumn == null) sb.append("NULL,");	else sb.append("'"+thisColumn+"',");      }      sb.deleteCharAt(sb.length()-1); // remove trailing ,      sb.append(")");      s.executeQuery(sb.toString());    } catch (SQLException e){      logger.logMessage(Logger.ERROR,Logger.DB_WRITE, 			"Problem inserting conflicted row",e);    }  }