}
public void insertTextSection(String GroupName, String TemplateName, boolean _bAddParagraph) {
try {
if (_bAddParagraph){
XTextCursor xTextCursor = xText.createTextCursor();
xText.insertControlCharacter(xTextCursor, ControlCharacter.PARAGRAPH_BREAK, false);
// Helper.setUnoPropertyValue(xTextCursor, "PageDescName", "First Page");
xTextCursor.collapseToEnd();
}
XTextCursor xSecondTextCursor = xText.createTextCursor();
xSecondTextCursor.gotoEnd(false);
insertTextSection( GroupName, TemplateName, xSecondTextCursor );
}
catch (IllegalArgumentException e) {
e.printStackTrace(System.out);
}}