command = conn.prepareCommand(sqlStatement, fetchSize, session);
ArrayList<? extends ParameterInterface> newParams = command
.getParameters();
for (int i = 0, size = oldParams.size(); i < size; i++) {
ParameterInterface old = oldParams.get(i);
Value value = old.getParamValue();
if (value != null) {
ParameterInterface n = newParams.get(i);
n.setValue(value, false);
}
}