if (filterMethod != null) {
filterField = new FilterField(filterMethod);
} else if (filterExpression != null) {
filterField = new FilterField(filterExpression);
} else if (filterBy != null) {
filterField = new ExtendedFilterField(filterBy, filterValue);
}
return filterField;
}