Xpp3Dom dom = Xpp3DomBuilder.build(r);
modelVersion = dom.getChild("version").getValue();
}
catch (XmlPullParserException e) {
throw new ConfigurationIsCorruptedException(file.getAbsolutePath(), e);
}
if (SecurityConfiguration.MODEL_VERSION.equals(modelVersion)) {
// we have a problem here, model version is OK but we could not load it previously?
throw new ConfigurationIsCorruptedException(file);
}
UpgradeMessage msg = new UpgradeMessage();
msg.setModelVersion(modelVersion);