// Turn on default indices
String key = partition.getSuffix().getNormName();
if ( partitions.containsKey( key ) )
{
throw new LdapOtherException( I18n.err( I18n.ERR_263, key ) );
}
if ( !partition.isInitialized() )
{
partition.initialize();
}
synchronized ( partitionLookupTree )
{
Dn partitionSuffix = partition.getSuffix();
if ( partitionSuffix == null )
{
throw new LdapOtherException( I18n.err( I18n.ERR_267, partition.getId() ) );
}
partitions.put( partitionSuffix.getNormName(), partition );
partitionLookupTree.add( partition.getSuffix(), partition );