class ExplicitIndexTransactionStateImpl implements ExplicitIndexTransactionState, IndexCommandFactory {

    @Override
    public boolean checkIndexExistence( IndexEntityType entityType, String indexName, Map<String,String> config )
    {
        Map<String, String> configuration = indexConfigStore.get( entityType.entityClass(), indexName );
        if ( configuration == null )
        {
            return false;
        }

        String providerName = configuration.get( IndexManager.PROVIDER );
        IndexImplementation provider = providerLookup.getProviderByName( providerName );
        assertConfigMatches( provider, indexName, configuration, config );
        return true;
    }

    public  ExplicitIndexTransactionStateImpl( IndexConfigStore indexConfigStore,
            ExplicitIndexProvider explicitIndexProvider );

}