public FilterTranslator GetFilter(string filterString, string collectionRole, bool scalar) { FilterCacheKey cacheKey = new FilterCacheKey(collectionRole, filterString, scalar); FilterTranslator filter = ( FilterTranslator )Get(cacheKey); if (filter == null) { filter = CreateFilterTranslator(filterString, cacheKey); } filter.Compile(collectionRole, this, settings.QuerySubstitutions, scalar); return(filter); }