public GridControl getInvoices() { if (controller.getParentFrame() != null) return controller.getParentFrame().getGrid(); else return null; }