PIM-1771 : change visibility of applyFilterByAttribute to protected and begin to
refactor the implementation of FlexibleFilter