code: private String substituteSqlArguments(String sql, String tableName,
  			String geometryColumnName, String idColumnName, String triggerName) {
  
  		String substituted = sql;
  
  		substituted = substituted.replaceAll(TABLE_SUBSTITUTE, tableName);
  		substituted = substituted.replaceAll(GEOMETRY_COLUMN_SUBSTITUTE,
  				geometryColumnName);
  
  		if (idColumnName != null) {
  			substituted = substituted.replaceAll(PK_COLUMN_SUBSTITUTE,
  					idColumnName);
  		}
  
  		if (triggerName != null) {
  			substituted = substituted.replaceAll(TRIGGER_SUBSTITUTE,
  					triggerName);
  		}
  
  		return substituted;
  	}
docs: Replace the SQL arguments for the table, geometry column, id column, and
  trigger name
  
  @param sql
  sql to substitute
  @param tableName
  table name
  @param geometryColumnName
  geometry column name
  @param idColumnName
  id column name
  @param triggerName
  trigger name
  @return substituted sql