aConfigStream = new FileInputStream("empire.config.properties");
aReader = new PropertiesConfigReader();
}
else if (new File("empire.xml").exists()) {
aConfigStream = new FileInputStream("empire.xml");
aReader = new XmlConfigReader();
}
else if (new File("empire.config.xml").exists()) {
aConfigStream = new FileInputStream("empire.config.xml");
aReader = new XmlConfigReader();
}
}
catch (FileNotFoundException e) {
LOGGER.error("Count not find config file: " + e.getMessage());
}