e.printStackTrace(System.out);
}
}
public void linkSectiontoTemplate(Object oTextSection, String TemplateName, String SectionName) {
SectionFileLink oSectionLink = new SectionFileLink();
oSectionLink.FileURL = TemplateName;
Helper.setUnoPropertyValues(oTextSection, new String[] { "FileLink", "LinkRegion" }
, new Object[] { oSectionLink, SectionName });
XNamed xSectionName = (XNamed) UnoRuntime.queryInterface(XNamed.class, oTextSection);
String NewSectionName = xSectionName.getName();