String[] areas = getDocument().getPublication().getAreaNames();
for (int i = 0; i < areas.length; i++) {
if (getDocument().existsAreaVersion(areas[i])) {
Document doc = getDocument().getAreaVersion(areas[i]);
MetaData meta = doc.getMetaData(METADATA_NAMESPACE);
meta.addValue(METADATA_VERSION, versionString);
}
}
} catch (Exception e) {
throw new RuntimeException(e);
}