final Collection<?> beans, final String heading,
final ReportEnum reportEnum, final Map<String, Object> extraParams,
final String reportFileName, final WindowInterface window,
final boolean isModal) throws ProTransException {
JDialog dialog = Util.getDialog(window, heading, isModal);
WindowInterface dialogWindow = new JDialogAdapter(dialog);
dialogWindow.setName(heading);
dialogWindow.add(buildPanel(dialogWindow));
generateProtransReportFromBean(beans, heading, reportEnum, extraParams,
reportFileName);
dialogWindow.pack();
dialogWindow.setSize(new Dimension(850, 700));
Util.locateOnScreenCenter(dialogWindow);
dialogWindow.setVisible(true);
}