UIApplication uiApp = ctx.getUIApplication();
UIPageSelector uiPageSelector = uiPageBrowser.getAncestorOfType(UIPageSelector.class);
UserPortalConfigService service = uiPageBrowser.getApplicationComponent(UserPortalConfigService.class);
UserACL userACL = uiPageBrowser.getApplicationComponent(UserACL.class);
if (!userACL.hasPermission(service.getPageService().loadPage(PageKey.parse(id)))) {
uiApp.addMessage(new ApplicationMessage("UIPageBrowser.msg.NoPermission", new String[] { id }));
}
uiPageSelector.setValue(id);
// uiPageBrowser.feedDataWithQuery(null);
UIForm uiForm = uiPageSelector.getAncestorOfType(UIForm.class);