public void config(BaseQuery query) throws TokenStreamException, RecognitionException, UnsupportedEncodingException {
List sqlParams = new ArrayList();
for (Object param : this.params) {
sqlParams.add(param instanceof ModelQuery ? ((ModelQuery) param).toSQL() : param);
}
stringFilter = new SQLStringFilter(this.source, sqlParams);
List<String> columns = stringFilter.findColumns();
for (int index = 0; index < columns.size(); index++) {
MultiModelField multiModelField = query.getMultiModel().getField(columns.get(index));
multiModelFields.add(multiModelField);
stringFilter.setColumnSQLName(index, multiModelField.getSQLName());