config = EmptyConfiguration.INSTANCE;
}
else if( (args.length == 2) && args[0].equals("-xml") ) {
System.out.println("Using xml configuration file " + args[1] + "...");
in = new FileInputStream(args[1]);
XmlConfigurationHandler xmlHandler = new XmlConfigurationHandler(in);
config = xmlHandler.parse();
}
else if( (args.length == 2) && args[0].equals("-prop") ) {
System.out.println("Using properties configuration file " + args[1] + "...");
in = new FileInputStream(args[1]);
config = new PropertiesConfiguration(in);