// Get the connection.
conn = targetDS.getConnection();
// Execute the query.
lastExecutedStmt = createSQLStatament();
trace = new SQLStatementTrace(lastExecutedStmt.getSQLSentence()).begin();
trace.addRuntimeConstraint(new DataSetLoadConstraints(this));
log.debug("Load data set from datasource=" + dataSource + " SQL=" + lastExecutedStmt.getSQLSentence());
stmt = lastExecutedStmt.getPreparedStatement(conn);
rs = stmt.executeQuery();