AttributeTypeRegistry attributeTypeRegistry;
attributeTypeRegistry = globalRegistries.getAttributeTypeRegistry();
MatchingRuleRegistry reg = globalRegistries.getMatchingRuleRegistry();
// start getting all the parameters from the initial environment
ContextPartitionConfig[] configs = null;
configs = PartitionConfigBuilder.getContextPartitionConfigs( initialEnv );
for ( int ii = 0; ii < configs.length; ii++ )
{
// ----------------------------------------------------------------
// create working directory under eve directory for app partition
// ----------------------------------------------------------------
String wkdir = eveWkdir + File.separator + configs[ii].getId();
mkdirs( eveWkdir, configs[ii].getId() );
// ----------------------------------------------------------------
// create the database/store
// ----------------------------------------------------------------
Name upSuffix = new LdapName( configs[ii].getSuffix() );
Normalizer dnNorm = reg.lookup( "distinguishedNameMatch" ) .getNormalizer();
Name normSuffix = new LdapName( ( String ) dnNorm.normalize( configs[ii].getSuffix() ) );
Database db = new JdbmDatabase( upSuffix, normSuffix, wkdir );