List<Object> groupedContent = null;
///////////////////////////////////////////////
// First, contents of existing content controls
// .. find the content controls
SdtFinder sdtFinder = new SdtFinder();
new TraversalUtil(mainDocument.getContent(), sdtFinder);
// .. loop through them
for (SdtElement sdtEl : sdtFinder.getSdtList()) {
content = sdtEl.getSdtContent().getContent();
groupedContent = groupContent(content);
if (groupedContent != null) {
content.clear();