filterController.remove(dynamicQuery);
}
} else {
if (dynamicQuery == null) {
//Create dynamic filter
DynamicRangeBuilder rangeBuilder = filterModel.getLibrary().getLookup().lookup(DynamicRangeBuilder.class);
FilterBuilder[] fb = rangeBuilder.getBuilders();
if (fb.length > 0) {
DynamicRangeFilter filter = (DynamicRangeFilter) fb[0].getFilter();
dynamicQuery = filterController.createQuery(filter);
filterController.add(dynamicQuery);
}