{
storeEntityPreferences(map, window);
}
catch (PreferencesException e)
{
throw new PortletContainerException(e);
}
return;
}
String userName = request.getUserPrincipal() != null ? request.getUserPrincipal().getName() : null;
if (userName == null)
{
userName = SubjectHelper.getPrincipal(window.getRequestContext().getSubject(), User.class).getName();
}
try
{
storeUserPreferences(map, window, userName);
}
catch (PreferencesException e)
{
throw new PortletContainerException(e);
}
}