int counter = childCount;
if (childCount > 500) counter = 500;
for (int i = 0; i < counter; i++) {
try {
XAccessible ch = oObj.getAccessibleChild(i) ;
XAccessibleContext chAC = ch.getAccessibleContext();
log.println(" Child " + i + ": " +
chAC.getAccessibleDescription()) ;
if (!AccessibilityTools.equals
(chAC.getAccessibleParent().getAccessibleContext(), oObj)){
log.println("Role:");
log.println("Getting: "+chAC.getAccessibleParent().getAccessibleContext().getAccessibleRole());
log.println("Expected: "+oObj.getAccessibleRole());
log.println("ImplementationName:");
log.println("Getting: "+util.utils.getImplName(chAC.getAccessibleParent().getAccessibleContext()));
log.println("Expected: "+util.utils.getImplName(oObj));
log.println("The parent of child and component "+
"itself differ.");
log.println("Getting(Description): "
+chAC.getAccessibleParent().getAccessibleContext().getAccessibleDescription());
log.println("Expected(Description): "
+oObj.getAccessibleDescription());
bOK = false;
} else {