setConfiguration(configurationUpgrader.loadOldConfiguration(file));
// after all we should have a configuration
if (getConfiguration() == null) {
throw new ConfigurationException("Could not upgrade Security configuration! Please replace the "
+ file.getAbsolutePath() + " file with a valid Security configuration file.");
}
getLogger().info("Creating backup from the old file and saving the upgraded configuration.");