IndexManager[] providers = new IndexManager[nbrOfProviders];
for ( int index = 0; index < nbrOfProviders; index++ ) {
String providerName = nbrOfProviders > 1 ?
directoryProviderName + "." + index :
directoryProviderName;
IndexManager indexManager = indexManagersRegistry.get( providerName );
if ( indexManager == null ) {
indexManager = createIndexManager( providerName, indexProps[index], context, cfg );
indexManagersRegistry.put( providerName, indexManager );
}
indexManager.addContainedEntity( mappedClass );
providers[index] = indexManager;
}
//define sharding strategy for this entity:
IndexShardingStrategy shardingStrategy;