}
if (!expectedId.getVersion().equals(metadata.getId().getVersion())) {
errors.add("bad version: expected='" + expectedId.getVersion() + "' found='" + metadata.getId().getVersion() + "'");
}
if (errors.size() > 0) {
throw new MetaDataParseException(String.format("inconsistent module metadata found. Descriptor: %s Errors: %s",
metadata.getId(), Joiner.on(SystemProperties.getLineSeparator()).join(errors)));
}
}