.getNamedItem(ConfigurationFileTagsV1.VERSION_ATTRIBUTE);
versionNumber = versionNode.getNodeValue();
} catch (NullPointerException npe) {
throw new MigrationPathConfigException(
"Could not access the 'version' attribute of the 'serviceWrapping' element in the configuration document.",
npe);
} catch (Exception exception) {
throw new MigrationPathConfigException(
"Validation of the configuration file version number failed.",
exception);
}
if (!ConfigurationFileTagsV1.CONFIGURATION_FORMAT_VERSION.toLowerCase()
.equals(versionNumber.toLowerCase())) {
throw new MigrationPathConfigException(
"Invalid version number in configuration document '"
+ versionNumber
+ "'. Expected version '"
+ ConfigurationFileTagsV1.CONFIGURATION_FORMAT_VERSION);
}