try {
oObj = at.getAccessibleObjectForRole
(xRoot, AccessibleRole.HEADER, "").getAccessibleChild(0);
XAccessibleContext cont = (XAccessibleContext)
UnoRuntime.queryInterface(XAccessibleContext.class, oObj);
XAccessibleStateSet StateSet = cont.getAccessibleStateSet();
if (StateSet.contains((short)27)) {
log.println("Object is transient");
}
} catch (com.sun.star.lang.IndexOutOfBoundsException iabe) {
throw new StatusException("Couldn't find needed Child",iabe);
}