final ParsedStatement stmt = new ParsedStatement();
try {
String newSql = parseString(sqlGenerator.generate(params), stmt);
return new MyRewrittenStatement(newSql, stmt, ctx);
} catch(IllegalArgumentException e) {
throw new UnableToCreateStatementException("Exception parsing for named parameter replacement", e, ctx);
}
}