public void execute(Event<UIPortal> event) throws Exception { UIPortal uiPortal = event.getSource(); String portletId = event.getRequestContext().getRequestParameter("portletId"); UIPortlet uiPortlet = uiPortal.findComponentById(portletId); WebuiRequestContext context = event.getRequestContext(); uiPortlet.createEvent("ChangeWindowState", event.getExecutionPhase(), context).broadcast(); }