{
UIPage uiPage = event.getSource();
UIPortalApplication uiPortalApp = uiPage.getAncestorOfType(UIPortalApplication.class);
UIMaskWorkspace uiMaskWorkspace = uiPortalApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
UIAddNewApplication uiAddApplication = uiPage.createUIComponent(UIAddNewApplication.class, null, null);
uiAddApplication.setInPage(true);
uiAddApplication.setUiComponentParent(uiPage);
uiAddApplication.getApplicationCategories(event.getRequestContext().getRemoteUser(), null);
uiMaskWorkspace.setWindowSize(700, 375);
uiMaskWorkspace.setUIComponent(uiAddApplication);
uiMaskWorkspace.setShow(true);
event.getRequestContext().addUIComponentToUpdateByAjax(uiMaskWorkspace);