public PanelReportGenerator(PageContainer container, QueryLocal query) throws ClipsException {
super(container);
initComponents();
this.queryLocal = query;
try {
PanelGenerator panel = new PanelGenerator(MainWindow.mainWindow, query, new ReportManagerImp(getAuditManager()));
reportQuery = panel.getQuery();
add(panel);
query.addContentStateListener(container);
} catch (ReportException ex) {
throw new ClipsException("Ошибка при открытии отчета", ex);