docs: public static SearchManager getSearchManager(Cache<?, ?> cache) {
        if (cache == null || cache.getAdvancedCache() == null) {
           throw new IllegalArgumentException("cache parameter shall not be null");
        }
        AdvancedCache<?, ?> advancedCache = cache.getAdvancedCache();
        ensureAccessPermissions(advancedCache);
        return new SearchManagerImpl(advancedCache);
     }