msg.setConfiguration(upgrader.loadConfiguration(file));
while (!Configuration.MODEL_VERSION.equals(msg.getModelVersion())) {
if (upgrader != null) {
upgrader.upgrade(msg);
}
else {
// we could parse the XML but have no model version? Is this nexus config at all?
throw new UnsupportedConfigurationVersionException(modelVersion, file);
}