try {
oObj = the_access.getControl(the_Model);
aControl = the_access.getControl(the_Model2);
the_win = the_access.getControl(the_Model).getPeer();
the_kit = the_win.getToolkit();
aDevice = the_kit.createScreenCompatibleDevice(200, 200);
aGraphic = aDevice.createGraphics();
} catch (com.sun.star.container.NoSuchElementException e) {
log.println("Couldn't get OButtonControl");
e.printStackTrace(log);
throw new StatusException("Couldn't get OButtonControl", e);