public String getSql() {
return delegate.getSql();
}
public void appendSql(String sql) {
GenericTokenParser parser = new GenericTokenParser("#{", "}", new GenericTokenParser.TokenHandler() {
public String handleToken(String content) {
String newContent = content.replaceFirst(item, itemizeItem(item, index));
return new StringBuilder("#{").append(newContent).append("}").toString();
}
});
delegate.appendSql(parser.parse(sql));
}