e.printStackTrace(log);
throw new StatusException( "Couldn't create environment ", e );
}
XText oText = xTextDoc.getText();
XTextCursor oCursor = oText.createTextCursor();
XPropertySet xProp = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, oCursor);
Property[] props = xProp.getPropertySetInfo().getProperties();
for (int i=0; i<props.length; i++)
System.out.println("# Property: " + props[i].Name + " val: " + props[i].Type.toString() + " attr: " + props[i].Attributes);