final GanttChart ganttChart = createGanttChart();
final Component oldGanttImage = ganttImage;
if (ganttChart != null) {
final Document document = ganttChart.create();
if (document != null) {
ganttImage = new ImagePanel(form.imagePanel.newChildId(), new BatikImage(ImagePanel.IMAGE_ID, document, getGanttChartStyle()
.getWidth()));
} else {
ganttImage = null;
}
} else {