ex.printStackTrace();
log.error("Error in FBTest", ex);
    public static void main(String[] args) throws Exception {        final String devId = (args.length > 0) ? args[0] : "fb0";        final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100;        final String tests = (args.length > 2) ? args[2] : "plrREQ";        Surface g = null;        try {            final DeviceManager dm = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME);            final Device dev = dm.getDevice(devId);            final FrameBufferAPI api = (FrameBufferAPI) dev.getAPI(FrameBufferAPI.class);            final FrameBufferConfiguration conf = api.getConfigurations()[0];            g = api.open(conf);            new FBTest(g, conf.getScreenWidth(), conf.getScreenHeight(), count, tests).perform();            Thread.sleep(3000);        } catch (Throwable ex) {            ex.printStackTrace();        } finally {            if (g != null) {                g.close();            }        }    }