//
if (title == null) {
UIPortal uiportal = Util.getUIPortal();
//
UserNode node = uiportal.getSelectedUserNode();
if (node != null) {
ExoContainer container = getApplication().getApplicationServiceContainer();
container.getComponentInstanceOfType(UserPortalConfigService.class);
UserPortalConfigService configService = (UserPortalConfigService) container
.getComponentInstanceOfType(UserPortalConfigService.class);
PageKey pageRef = node.getPageRef();
PageContext page = configService.getPage(pageRef);
//
if (page != null) {
title = page.getState().getDisplayName();
String resolvedTitle = ExpressionUtil.getExpressionValue(this.getApplicationResourceBundle(), title);
if (resolvedTitle != null) {
return resolvedTitle;
}
}
title = node.getResolvedLabel();
}
}
return title == null ? "" : title;
}