public static void saveConfiguration( ConnectionServerConfigurationInput input, ConfigWriter configWriter,
IProgressMonitor monitor )
throws Exception
{
// Getting the original configuration partition
EntryBasedConfigurationPartition originalPartition = input.getOriginalPartition();
// Creating a new configuration partition
SchemaManager schemaManager = ApacheDS2ConfigurationPlugin.getDefault().getSchemaManager();
EntryBasedConfigurationPartition newconfigurationPartition = new EntryBasedConfigurationPartition(
schemaManager );
newconfigurationPartition.initialize();
List<LdifEntry> convertedLdifEntries = configWriter.getConvertedLdifEntries();
for ( LdifEntry ldifEntry : convertedLdifEntries )
{
newconfigurationPartition.addEntry( new DefaultEntry( schemaManager, ldifEntry.getEntry() ) );
}
// Suspends event firing in current thread.
ConnectionEventRegistry.suspendEventFiringInCurrentThread();