String userId = "";
try {
userId = PortalUtil.getUser(req) == null?"":PortalUtil.getUser(req).getUserId();
} catch (PortalException e) {
throw new PortletException(e);
} catch (SystemException e) {
throw new PortletException(e);
}
if ((userId == null) || (_expCache == null) ||
(_expCache.intValue() == 0)) {