if (portletDescription != null) {
groupID = portletDescription.getGroupID();
}
if (groupID != null) {
GroupSessionMgr groupSession = userSession.getGroupSession(groupID);
this.markupPort = groupSession.getWSRPBaseService();
if (!groupSession.isInitCookieDone()) {
groupSession.setInitCookieRequired(true);
initCookie();
groupSession.setInitCookieDone(true);
}
} else {
// means either we have no service description from the producer containg the portlet
// or the producer specified initCookieRequired perGroup but didn't provide