public UserInfo getUserInfo(final String portalName, final String layoutKey)
throws Exception {
final Map objectModel = ContextHelper.getObjectModel(this.context);
final User user = ApplicationUtil.getUser(objectModel);
final UserInfo info = new PortalUserInfo(portalName, layoutKey, user);
info.setUserName(user.getId());
info.setGroup((String)user.getAttribute("group"));
final PortalApplication app =
(PortalApplication)ApplicationUtil.getApplication(objectModel);
info.setConfigurations(app.getPortalConfiguration());
return info;
}