if (upgrader != null) {
log.debug(
"Upgrading old Nexus configuration file (version {}) at {}", msg.getModelVersion(),
file.getAbsolutePath());
msg.setConfiguration(upgrader.loadConfiguration(file));
while (!Configuration.MODEL_VERSION.equals(msg.getModelVersion())) {
if (upgrader != null) {
upgrader.upgrade(msg);
}