@Override
public void cacheStarted(ComponentRegistry cr, String cacheName) {
Configuration configuration = cr.getComponent(Configuration.class);
cr.registerComponent(new ReflectionMatcher(null), ReflectionMatcher.class);
boolean indexingEnabled = configuration.indexing().index().isEnabled();
if ( ! indexingEnabled ) {
if ( verifyChainContainsQueryInterceptor(cr) ) {
throw new IllegalStateException( "It was NOT expected to find the Query interceptor registered in the InterceptorChain as indexing was disabled, but it was found" );