//get the XShapeGrouper
try{
log.println("get XShapeGroup");
XShapeGrouper oSG = (XShapeGrouper)UnoRuntime.queryInterface
(XShapeGrouper.class, oObj);
oObj = oSG.group(oShapes);
} catch ( Exception e) {
e.printStackTrace( log );
throw new StatusException(" Couldn't get XShapeGroup: ", e);
}