public static ConfigBean readConfiguration( InputStream is ) throws Exception
{
if ( is != null )
{
// Creating a partition associated from the input stream
ReadOnlyConfigurationPartition configurationPartition = new ReadOnlyConfigurationPartition( is,
ApacheDS2ConfigurationPlugin.getDefault().getSchemaManager() );
configurationPartition.initialize();
// Reading the configuration partition
return readConfiguration( configurationPartition );
}