metadom = doc.getMetaDom();
OdfOfficeMeta odfOfficeMeta = new OdfOfficeMeta(metadom);
stat = odfOfficeMeta.getDocumentStatistic();
if (stat == null) {
// the element does not exist in the metadata, add a new one
MetaDocumentStatisticElement statEle = odfOfficeMeta
.getOfficeMetaElement().newMetaDocumentStatisticElement();
stat = new OdfMetaDocumentStatistic(statEle);
}
}