public void queryClosing(EventObject eventObject, boolean getsOwnership)
throws CloseVetoException {
CloseEvent closeEvent = new CloseEvent(eventObject);
closeListener.queryClosing(closeEvent, getsOwnership);
if (closeEvent.getVeto())
throw new CloseVetoException();
}