final CostTypeManager costTypeManager = (CostTypeManager) ModelUtil
.getBean(CostTypeManager.MANAGER_NAME);
final OverviewView<CostType, CostTypeModel> viewer = new OverviewView<CostType, CostTypeModel>(
new CostTypeViewHandler(login, costTypeManager));
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);