refactored the generalized snippet from MapperBinder to CssSelectors