log.println("Unexpected exception " + e.getMessage());
e.printStackTrace(log);
throw new StatusException("Unexpected exception", e);
}
XCommandInfo xCmdInfo = (XCommandInfo)UnoRuntime.queryInterface(
XCommandInfo.class, result);
CommandInfo[] cmdInfo = xCmdInfo.getCommands();
boolean found = false;
for (int i = 0; i < cmdInfo.length; i++) {
if (cmdInfo[i].Name.equals(commandName)) {