public void setCaptionText(String text) {
CMutableDocument doc = element.getMutableDoc();
ContentElement caption = DocHelper.getElementWithTagName(doc, Caption.TAGNAME, element);
if (caption != null) {
doc.emptyElement(caption);
doc.insertText(Point.<ContentNode> end(caption), text);
}
}
/**
* Gets the text of the image caption