ServerConfiguration serverConfiguration = null;
ServerXmlIO serverXmlIO = null;
switch ( page.getTargetVersion() )
{
case VERSION_1_5_3:
serverXmlIO = new ServerXmlIOV153();
serverConfiguration = serverXmlIO.parse( ApacheDSConfigurationPlugin.class
.getResourceAsStream( "default-server-1.5.3.xml" ) );
break;
case VERSION_1_5_2:
serverXmlIO = new ServerXmlIOV152();
serverConfiguration = serverXmlIO.parse( ApacheDSConfigurationPlugin.class
.getResourceAsStream( "default-server-1.5.2.xml" ) );
break;
case VERSION_1_5_1:
serverXmlIO = new ServerXmlIOV151();
serverConfiguration = serverXmlIO.parse( ApacheDSConfigurationPlugin.class
.getResourceAsStream( "default-server-1.5.1.xml" ) );
break;
case VERSION_1_5_0:
serverXmlIO = new ServerXmlIOV150();
serverConfiguration = serverXmlIO.parse( ApacheDSConfigurationPlugin.class
.getResourceAsStream( "default-server-1.5.0.xml" ) );
break;
default:
serverXmlIO = new ServerXmlIOV153();
serverConfiguration = serverXmlIO.parse( ApacheDSConfigurationPlugin.class
.getResourceAsStream( "default-server-1.5.3.xml" ) );
break;
}