String dynSql = ctx.getBodyText();
// Processes $substitutions$ after DynamicSql
if (SimpleDynamicSql.isSimpleDynamicSql(dynSql)) {
dynSql = new SimpleDynamicSql(dynSql, ctx.getParameterMappings(), typeHandlerRegistry).getSql(parameterObject);
}
ctx.setDynamicSql(dynSql);
for (ParameterMapping mapping : parameterMappings) {
ctx.addParameterMapping(mapping);