return pk;
}
public static PortletPreferences getPreferences(HttpServletRequest req) {
RenderRequest renderRequest =
(RenderRequest)req.getAttribute(WebKeys.JAVAX_PORTLET_REQUEST);
PortletPreferences prefs = null;
if (renderRequest != null) {
PortletPreferencesWrapper prefsWrapper =
(PortletPreferencesWrapper)renderRequest.getPreferences();
prefs = prefsWrapper.getPreferencesImpl();
}
return prefs;