if (shapeName.startsWith("Text Box ")) {
shape.getTextFrame().getTextRange().select();
buffer.append(getSelection(mWordApplication) + "\n");
}
else if (shapeName.startsWith("Group ")) {
GroupShapes group = shape.getGroupItems();
for (int i = 1; i <= group.getCount(); i++) {
Shape child = group.item(new Variant(i));
appendShape(child, buffer);
}
}
}