public void execute(Event<UIPortlet> event) throws Exception {
      UIPortlet uiPortlet = event.getSource();
      UIPortalApplication uiApp = Util.getUIPortalApplication();
      UIMaskWorkspace uiMaskWS = uiApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
      UIPortletForm uiPortletForm = uiMaskWS.createUIComponent(UIPortletForm.class, null, null);

      if (uiPortletForm.setValues(uiPortlet) == false) {
        uiMaskWS.setUIComponent(null);
        WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
        context
            .getUIApplication()
            .addMessage(
                (new ApplicationMessage(
                    "UIPortlet.message.portletDeleted", null, ApplicationMessage.ERROR)));
      } else {
        uiMaskWS.setUpdated(true);
        uiMaskWS.setWindowSize(800, -1);
        event.getRequestContext().addUIComponentToUpdateByAjax(uiMaskWS);
      }
    }