}
public void clickMiddleOfAccessibleObject(short role, String name){
XAccessibleContext xAcc =mAT.getAccessibleObjectForRole(mXRoot, role, name);
XAccessibleComponent aComp = (XAccessibleComponent) UnoRuntime.queryInterface(
XAccessibleComponent.class, xAcc);
System.out.println(xAcc.getAccessibleRole() + "," +
xAcc.getAccessibleName() + "(" +
xAcc.getAccessibleDescription() + "):" +
utils.getImplName(xAcc));
if (aComp != null) {
Point location = aComp.getLocationOnScreen();
String bounds = "(" + aComp.getBounds().X + "," +
aComp.getBounds().Y + ")" + " (" +
aComp.getBounds().Width + "," +
aComp.getBounds().Height + ")";
System.out.println("The boundary Rectangle is " + bounds);
try {
Robot rob = new Robot();
int x = aComp.getLocationOnScreen().X + (aComp.getBounds().Width / 2);
int y = aComp.getLocationOnScreen().Y + (aComp.getBounds().Height / 2);
System.out.println("try to click mouse button on x/y " + x + "/" + y);
rob.mouseMove(x, y);
rob.mousePress(InputEvent.BUTTON1_MASK);
rob.mouseRelease(InputEvent.BUTTON1_MASK);
} catch (java.awt.AWTException e) {