{
JetspeedRequestContext context = (JetspeedRequestContext) getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
if (null != context)
{
String entityID = "--NULL--";
PortletEntity entity = portletWindow.getPortletEntity();
if (entity != null)
{
entityID = entity.getId().toString();
}
PortletApplicationEntity portletAppEntity = portletWindow.getPortletEntity()
.getPortletApplicationEntity();
PortletApplicationDefinition portletAppDef = entity.getPortletDefinition()
.getPortletApplicationDefinition();
if (null != portletAppDef)
{
value = context.getUserInfoMap(portletAppDef.getId());