IndexImplementation indexProvider = null;
if ( configToUse == null )
{
provider = getDefaultProvider( indexName, dbConfig );
indexProvider = getIndexProvider( provider );
configToUse = indexProvider.fillInDefaults( MapUtil.stringMap( KEY_INDEX_PROVIDER, provider ) );
}
else
{
provider = configToUse.get( KEY_INDEX_PROVIDER );
provider = provider == null ? getDefaultProvider( indexName, dbConfig ) : provider;