TextParagraphElementBase podf = paragraph.getOdfElement();
NodeList cns = podf.getChildNodes();
for (int i = 0; i < cns.getLength(); i++) {
Node node = cns.item(i);
if (node instanceof TextTocMarkElement) {
TextTocMarkElement textTocMarkElement = (TextTocMarkElement) node;
text = textTocMarkElement.getTextStringValueAttribute();
int headingLevel = textTocMarkElement
.getTextOutlineLevelAttribute();
stylename = "Contents_20_" + headingLevel;
ceateIndexBodyEntry(textIndexBody, stylename, text);
}
if (node instanceof TextTocMarkStartElement) {