final Generator gr = Generator.instance();
RunTimeContext rtc = new RunTimeContext();
GeneratedChartState state = gr.build(deviceRenderer.getDisplayServer(), cm, bo, null, rtc, null);
gr.render(deviceRenderer, state);
} catch (Exception ex) {
paintError = ex;
} finally {
gc.dispose();
if (deviceRenderer != null) {